Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kitware/COAT
/ save_on_master
Function
save_on_master
utils/utils.py:310–312 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
308
309
310
def
save_on_master(*args, **kwargs):
311
if
is_main_process():
312
torch.save(*args, **kwargs)
313
314
315
def
init_distributed_mode(args):
Callers
1
main
Function · 0.90
Calls
1
is_main_process
Function · 0.85
Tested by
no test coverage detected