Skip to content

Commit c2c7e93

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 744cbbf commit c2c7e93

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lightning/pytorch/callbacks/model_checkpoint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ def on_validation_end(self, trainer: "pl.Trainer", pl_module: "pl.LightningModul
348348
self._save_last_checkpoint(trainer, monitor_candidates)
349349

350350
@override
351-
352351
def on_exception(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", exception: BaseException) -> None:
353352
"""Save a checkpoint when an exception is raised."""
354353
if not self._should_save_on_exception(trainer):
@@ -368,7 +367,6 @@ def on_train_end(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule") -
368367
monitor_candidates = self._monitor_candidates(trainer)
369368
self._save_last_checkpoint(trainer, monitor_candidates)
370369

371-
372370
@override
373371
def state_dict(self) -> dict[str, Any]:
374372
return {

0 commit comments

Comments
 (0)