oneflow.env.get_world_size

oneflow.env.get_world_size()

Returns the number of processes in the current process group.

Returns

The world size of the process group.