Skip to content

Commit 9dad87f

Browse files
committed
Add an example pointer
1 parent a20c074 commit 9dad87f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch/distributed/distributed_c10d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,6 +2050,7 @@ def all_gather(output, tensor, group=None, async_op=False):
20502050
dimension, see ``torch.cat()``;
20512051
(ii) a stack of the input tensors along the primary dimension,
20522052
see ``torch.stack()``.
2053+
Examples below may better explain the supported output forms.
20532054
tensor (Tensor): Tensor to be broadcast from current process.
20542055
group (ProcessGroup, optional): The process group to work on. If None,
20552056
the default process group will be used.

0 commit comments

Comments
 (0)