Skip to content

Commit ed5a197

Browse files
committed
lightning module too
1 parent 5b29097 commit ed5a197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lightning/pytorch/core/module.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ def all_gather(
668668
669669
Return:
670670
A tensor of shape (world_size, batch, ...), or if the input was a collection
671-
the output will also be a collection with tensors of this shape.
671+
the output will also be a collection with tensors of this shape. For the special case where
672+
world_size is 1, no additional dimension is added to the tensor(s).
672673
673674
"""
674675
group = group if group is not None else torch.distributed.group.WORLD

0 commit comments

Comments
 (0)