mmengine.dist.get_local_rank — mmengine 0.10.7 documentation (original) (raw)

Shortcuts

mmengine.dist.get_local_rank()[source]

Return the rank of current process in the current node.

Returns:

Return the rank of current process in the current node if in distributed environment, otherwise 0

Return type:

int