Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ is_main_process
Function
is_main_process
SwissArmyTransformer/examples/mae/util/misc.py:207–208 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
205
206
207
def
is_main_process():
208
return
get_rank() == 0
209
210
211
def
save_on_master(*args, **kwargs):
Callers
1
save_on_master
Function · 0.70
Calls
1
get_rank
Function · 0.70
Tested by
no test coverage detected