MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get_world_size

Function get_world_size

SwissArmyTransformer/examples/mae/util/misc.py:195–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194
195def get_world_size():
196 if not is_dist_avail_and_initialized():
197 return 1
198 return dist.get_world_size()
199
200
201def get_rank():

Callers 2

printFunction · 0.70
all_reduce_meanFunction · 0.70

Calls 1

Tested by

no test coverage detected