MCPcopy 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
401def save_on_master(*args, **kwargs):
402 if is_main_process():
403 torch.save(*args, **kwargs)
404
405
406def init_distributed_mode(args):

Callers

nothing calls this directly

Calls 2

saveMethod · 0.80
is_main_processFunction · 0.70

Tested by

no test coverage detected