Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ get_rank
Function
get_rank
SwissArmyTransformer/examples/yolos/util/misc.py:391–394 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
389
390
391
def
get_rank():
392
if
not is_dist_avail_and_initialized():
393
return
0
394
return
dist.get_rank()
395
396
397
def
is_main_process():
Callers
1
is_main_process
Function · 0.70
Calls
1
is_dist_avail_and_initialized
Function · 0.70
Tested by
no test coverage detected