TorchCPUDist¶
- class mmeval.core.dist_backends.TorchCPUDist[source]¶
A cpu distributed communication backend for torch.distributed.
- property is_initialized: bool¶
Returns True if the distributed environment has been initialized.
- Returns
Returns True if the distributed environment has been initialized, otherwise returns False.
- Return type
bool
- property rank: int¶
Returns the rank index of the current process group.
- property world_size: int¶
Returns the world size of the current process group.