TorchCPUDist¶
- class mmeval.core.dist_backends.TorchCPUDist[源代码]¶
A cpu distributed communication backend for torch.distributed.
- property is_initialized: bool¶
Returns True if the distributed environment has been initialized.
- 返回
Returns True if the distributed environment has been initialized, otherwise returns False.
- 返回类型
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.