broadcast (original) (raw)

Back to top

Edit this page

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