broadcast (original) (raw)
Toggle table of contents sidebar
composer.utils.dist.broadcast(tensor, src, group=None)[source]#
Broadcasts the tensor to the whole group.
tensor
must have the same number of elements in all processes participating in the collective. See torch.distributed.broadcast().
Parameters