Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
514
def
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
522
def
get_world_size():
Callers
5
forward
Method · 0.90
forward
Method · 0.90
synchronize_between_processes
Method · 0.70
get_world_size
Function · 0.70
get_rank
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected