add rank_zero_only for ExperimentBase.save
This commit is contained in:
parent
f423323bae
commit
0af7402daa
|
@ -124,6 +124,7 @@ class ExperimentBase(object):
|
|||
"""
|
||||
dist.init_parallel_env()
|
||||
|
||||
@mp_tools.rank_zero_only
|
||||
def save(self):
|
||||
"""Save checkpoint (model parameters and optimizer states).
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue