Python API
all_gather_object()
Gather objects from all ranks in the group.
This is a convenience wrapper around torch.distributed.all_gather_object.
obj (object) – The object to gather. Must be pickable.
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. Default is None.
A list of objects gathered from all ranks.
List[object]