mmedit.models.base_archs.all_gather_layer¶
Module Contents¶
Classes¶
All gather layer with backward propagation path. |
- class mmedit.models.base_archs.all_gather_layer.AllGatherLayer(*args, **kwargs)[源代码]¶
Bases:
torch.autograd.FunctionAll 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.