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 831be40 commit 6c629e4Copy full SHA for 6c629e4
src/lightning/pytorch/cli.py
@@ -566,8 +566,8 @@ def _parse_ckpt_path(self) -> None:
566
return
567
if "_class_path" in hparams:
568
hparams = {
569
- "class_path": hparams["_class_path"],
570
- "dict_kwargs": {k: v for k, v in hparams.items() if k != "_class_path"},
+ "class_path": hparams.pop("_class_path"),
+ "dict_kwargs": hparams,
571
}
572
hparams = {self.config.subcommand: {"model": hparams}}
573
try:
0 commit comments