Skip to content

Commit

Permalink
Update model_checkpoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthsub committed Mar 9, 2021
1 parent c8948cc commit fe1600e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pytorch_lightning/callbacks/model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def _should_skip_saving_checkpoint(self, trainer) -> bool:
trainer.fast_dev_run # disable checkpointing with fast_dev_run
or trainer.state != TrainerState.FITTING # don't save anything during non-fit
or trainer.sanity_checking # don't save anything during sanity check
or self.save_top_k == 0 # no models are saved
or self._last_global_step_saved == trainer.global_step # already saved at the last step
)

Expand Down

0 comments on commit fe1600e

Please sign in to comment.