Skip to content

Commit

Permalink
remove lambda function because it's compatible with pickle (used duri…
Browse files Browse the repository at this point in the history
…ng ddp)
  • Loading branch information
hadim committed Feb 22, 2020
1 parent 6b61f43 commit 2244f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, filepath, monitor: str = 'val_loss', verbose: bool = False,
# {filename: monitor}
self.kth_best_model = ''
self.best = 0
self.save_function = lambda x: None
self.save_function = None

mode_dict = {
'min': (np.less, np.Inf, 'min'),
Expand Down

0 comments on commit 2244f8c

Please sign in to comment.