Skip to content

Commit

Permalink
try delete in async or DDP us0-ecase
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Apr 7, 2020
1 parent fdb61cb commit 924496c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytorch_lightning/callbacks/model_checkpoint.py
Expand Up @@ -123,7 +123,10 @@ def __init__(self, filepath: str, monitor: str = 'val_loss', verbose: bool = Fal
self.monitor_op, self.kth_value, self.mode = mode_dict[mode]

def _del_model(self, filepath):
os.remove(filepath)
try:
os.remove(filepath)
except Exception:
pass

def _save_model(self, filepath):
# make paths
Expand Down

0 comments on commit 924496c

Please sign in to comment.