MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / save_on_master

Function save_on_master

SwissArmyTransformer/examples/mae/util/misc.py:211–213  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

209
210
211def save_on_master(*args, **kwargs):
212 if is_main_process():
213 torch.save(*args, **kwargs)
214
215
216def init_distributed_mode(args):

Callers 1

save_modelFunction · 0.70

Calls 2

saveMethod · 0.80
is_main_processFunction · 0.70

Tested by

no test coverage detected