From 04e0cb27de51a4224b55da24b8fbc4782a1514f1 Mon Sep 17 00:00:00 2001 From: tchaton Date: Tue, 20 Apr 2021 13:31:45 +0100 Subject: [PATCH] resolve tests --- pytorch_lightning/core/lightning.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytorch_lightning/core/lightning.py b/pytorch_lightning/core/lightning.py index 58e3156e42539..1fba0419c932e 100644 --- a/pytorch_lightning/core/lightning.py +++ b/pytorch_lightning/core/lightning.py @@ -1645,6 +1645,9 @@ class ``__init__`` to be ignored "arg1": 1 "arg3": 3.14 """ + # the frame needs to be create in this file. + if not frame: + frame = inspect.currentframe().f_back save_hyperparameters(self, *args, ignore=ignore, frame=frame) def _set_hparams(self, hp: Union[dict, Namespace, str]) -> None: