Skip to content

Commit

Permalink
resolve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed Apr 20, 2021
1 parent 57e006c commit 04e0cb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04e0cb2

Please sign in to comment.