Skip to content

Commit 1e1729e

Browse files
committed
remove lambda function because it's compatible with pickle (used during ddp)
1 parent 4b42d6b commit 1e1729e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, filepath, monitor: str = 'val_loss', verbose: bool = False,
7878
# {filename: monitor}
7979
self.kth_best_model = ''
8080
self.best = 0
81-
self.save_function = lambda x: None
81+
self.save_function = None
8282

8383
mode_dict = {
8484
'min': (np.less, np.Inf, 'min'),

0 commit comments

Comments
 (0)