We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f55551b + 74ba33d commit a85b98eCopy full SHA for a85b98e
src/nn_core/callbacks.py
@@ -51,7 +51,7 @@ def on_train_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule) -> No
51
def on_save_checkpoint(
52
self, trainer: pl.Trainer, pl_module: pl.LightningModule, checkpoint: Dict[str, Any]
53
) -> None:
54
- if self._is_nnlogger(trainer):
+ if trainer.logger is not None:
55
trainer.logger.on_save_checkpoint(trainer=trainer, pl_module=pl_module, checkpoint=checkpoint)
56
metadata = getattr(trainer.datamodule, "metadata", None)
57
if metadata is not None:
0 commit comments