Shortcuts

mmengine.dist.get_local_rank

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