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

Shortcuts

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