delete callbacks
This commit is contained in:
@@ -18,8 +18,4 @@ class CheckpointHook(ModelCheckpoint):
|
|||||||
pl_module: "pl.LightningModule",
|
pl_module: "pl.LightningModule",
|
||||||
checkpoint: Dict[str, Any]
|
checkpoint: Dict[str, Any]
|
||||||
) -> None:
|
) -> None:
|
||||||
del checkpoint["callbacks"]
|
del checkpoint["callbacks"]
|
||||||
|
|
||||||
# def on_exception(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", exception: BaseException) -> None:
|
|
||||||
# if not "debug" in self.exception_ckpt_path:
|
|
||||||
# trainer.save_checkpoint(self.exception_ckpt_path)
|
|
||||||
Reference in New Issue
Block a user