Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/FoundationVision/ByteTrack
/ get_world_size
Function
get_world_size
yolox/utils/dist.py:51–56 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
49
50
51
def
get_world_size() -> int:
52
if
not dist.is_available():
53
return
1
54
if
not dist.is_initialized():
55
return
1
56
return
dist.get_world_size()
57
58
59
def
get_rank() -> int:
Callers
6
__init__
Method · 0.90
all_reduce
Function · 0.85
all_gather
Function · 0.85
gather
Function · 0.85
get_num_boxes
Method · 0.85
get_num_boxes
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected