MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / is_dist_avail_and_initialized

Function is_dist_avail_and_initialized

util/distribute_utils.py:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def is_dist_avail_and_initialized():
84 if not dist.is_available():
85 return False
86 if not dist.is_initialized():
87 return False
88 return True
89
90
91def get_world_size():

Callers 2

get_world_sizeFunction · 0.70
get_rankFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected