MCPcopy Create free account
hub / github.com/GeWu-Lab/AnyTouch2 / get_world_size

Function get_world_size

utils.py:45–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 return True
44
45def get_world_size():
46 if not is_dist_avail_and_initialized():
47 return 1
48 return dist.get_world_size()
49
50def get_rank():
51 if not is_dist_avail_and_initialized():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected