Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
  • Loading branch information
Borda and awaelchli committed May 12, 2020
1 parent 6578951 commit a44f54d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pytorch_lightning/core/saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ def update_hparams(hparams, updates):
"""
Overrides hparams with new values
>>> hparams = {'a', {'b': 2}, 'c': 1}
>>> hparams = {'a': {'b': 2}, 'c': 1}
>>> updates = {'a': {'b': 4}, 'c': 7}
>>> update_hparams(hparams, updates)
>>> assert hparams['a']['b'] == 4, 'update hparams failed'
>>> assert hparams['c'] == 7, 'update hparams failed'
>>> hparams['a']['b']
4
>>> hparams['c']
7
Args:
hparams:
Expand Down

0 comments on commit a44f54d

Please sign in to comment.