Shortcuts

mmengine.dist.get_local_size

mmengine.dist.get_local_size()[source]

Return the number of the current node.

Returns:

Return the number of processes in the current node if in distributed environment, otherwise 1.

Return type:

int