Skip to content

Commit 6c629e4

Browse files
Update src/lightning/pytorch/cli.py
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
1 parent 831be40 commit 6c629e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def _parse_ckpt_path(self) -> None:
566566
return
567567
if "_class_path" in hparams:
568568
hparams = {
569-
"class_path": hparams["_class_path"],
570-
"dict_kwargs": {k: v for k, v in hparams.items() if k != "_class_path"},
569+
"class_path": hparams.pop("_class_path"),
570+
"dict_kwargs": hparams,
571571
}
572572
hparams = {self.config.subcommand: {"model": hparams}}
573573
try:

0 commit comments

Comments
 (0)