oneflow.env.get_rank

oneflow.env.get_rank()

Returns the rank of current process group. Rank is globally unique, range of which is [0, world_size).

Returns

The rank of the process group.