MCPcopy 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
310def save_on_master(*args, **kwargs):
311 if is_main_process():
312 torch.save(*args, **kwargs)
313
314
315def init_distributed_mode(args):

Callers 1

mainFunction · 0.90

Calls 1

is_main_processFunction · 0.85

Tested by

no test coverage detected