Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/whai362/PVT
/ is_dist_avail_and_initialized
Function
is_dist_avail_and_initialized
classification/utils.py:187–192 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
185
186
187
def
is_dist_avail_and_initialized():
188
if
not dist.is_available():
189
return
False
190
if
not dist.is_initialized():
191
return
False
192
return
True
193
194
195
def
get_world_size():
Callers
3
synchronize_between_processes
Method · 0.85
get_world_size
Function · 0.85
get_rank
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected