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.
1 parent af47ff4 commit 8c286e1Copy full SHA for 8c286e1
src/lightning/pytorch/loggers/utilities.py
@@ -69,8 +69,10 @@ def _log_hyperparams(trainer: "pl.Trainer") -> None:
69
lightning_hparams = pl_module.hparams_initial
70
inconsistent_keys = []
71
for key in lightning_hparams.keys() & datamodule_hparams.keys():
72
- if key.startswith("_"):
73
- # Prevent merging LightningCLI's internal hparams and discourage of private param names
+ if key in {"_class_path", "_instantiator"}:
+ # Prevent merging LightningCLI's internal hparams
74
+ lightning_hparams.pop(key)
75
+ datamodule_hparams.pop(key)
76
continue
77
lm_val, dm_val = lightning_hparams[key], datamodule_hparams[key]
78
if (
0 commit comments