Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ get_rank
Function
get_rank
SwissArmyTransformer/examples/mae/util/misc.py:201–204 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
199
200
201
def
get_rank():
202
if
not is_dist_avail_and_initialized():
203
return
0
204
return
dist.get_rank()
205
206
207
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