Skip to content

Commit 4aa95a6

Browse files
carmoccaawaelchli
andauthored
Update pytorch_lightning/callbacks/model_checkpoint.py
Co-authored-by: Adrian Wälchli <[email protected]>
1 parent 38d3089 commit 4aa95a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def on_pretrain_routine_start(self, trainer: 'pl.Trainer', pl_module: 'pl.Lightn
256256
self.__resolve_ckpt_dir(trainer)
257257
self._save_function = trainer.save_checkpoint
258258
if self._save_on_train_epoch_end is None:
259-
# if the user runs validation before multiple times per training epoch, we try to save checkpoint after
259+
# if the user runs validation multiple times per training epoch, we try to save checkpoint after
260260
# validation instead of on train epoch end
261261
self._save_on_train_epoch_end = trainer.val_check_interval == 1.0
262262

0 commit comments

Comments
 (0)