broadcast_object_list#
- composer.utils.dist.broadcast_object_list(object_list, src=0, group=None)[source]#
Broadcasts picklable objects in
object_listto the whole group.Similar to
broadcast(), but Python objects can be passed in. Note that all objects inobject_listmust be picklable in order to be broadcasted.See also
- Parameters
object_list (Tensor) โ list of input objects to broadcast. Each object must be picklable. Only objects on the
srcrank will be broadcast, but each rank must provide lists of equal sizes.src (int, optional) โ Source rank (default:
0)group (ProcessGroup, optional) โ The process group to work on. If
None, the default process group will be used. Default isNone.
- Returns
None โ
object_listwill be modified in-place and set to values ofobject_listfrom thesrcrank.