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

Function is_dist_avail_and_initialized

util/misc.py:514–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512
513
514def is_dist_avail_and_initialized():
515 if not dist.is_available():
516 return False
517 if not dist.is_initialized():
518 return False
519 return True
520
521
522def get_world_size():

Callers 5

forwardMethod · 0.90
forwardMethod · 0.90
get_world_sizeFunction · 0.70
get_rankFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected