Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ save_on_master
Function
save_on_master
SwissArmyTransformer/examples/yolos/util/misc.py:401–403 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
399
400
401
def
save_on_master(*args, **kwargs):
402
if
is_main_process():
403
torch.save(*args, **kwargs)
404
405
406
def
init_distributed_mode(args):
Callers
nothing calls this directly
Calls
2
save
Method · 0.80
is_main_process
Function · 0.70
Tested by
no test coverage detected