mmagic.models.archs.all_gather_layer
¶
Module Contents¶
Classes¶
All gather layer with backward propagation path. |
- class mmagic.models.archs.all_gather_layer.AllGatherLayer(*args, **kwargs)[source]¶
Bases:
torch.autograd.Function
All gather layer with backward propagation path.
Indeed, this module is to make
dist.all_gather()
in the backward graph. Such kind of operation has been widely used in Moco and other contrastive learning algorithms.