bug fix about clean

wangkuiyi-patch-1
tangwei12 7 years ago
parent 94eaf94cf5
commit e44c278e60

@ -425,7 +425,7 @@ class Trainer(object):
return self._get_parallel_executor()
def _clean_checkpoint(self):
if not self.checkpoint:
if not self.checkpoint and not self.chief:
return
io.clean_checkpoint(checkpoint_dir=self.checkpoint.checkpoint_dir)

Loading…
Cancel
Save