Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FoundationVision/ByteTrack
/ get_rank
Function
get_rank
yolox/utils/dist.py:59–64 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
57
58
59
def
get_rank() -> int:
60
if
not dist.is_available():
61
return
0
62
if
not dist.is_initialized():
63
return
0
64
return
dist.get_rank()
65
66
67
def
get_local_rank() -> int:
Callers
3
__init__
Method · 0.90
is_main_process
Function · 0.85
_serialize_to_tensor
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected