Shortcuts

mmengine.dist.get_local_rank

mmengine.dist.get_local_rank()[源代码]

Return the rank of current process in the current node.

返回

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

返回类型

int