Skip to content

Commit ac7d24b

Browse files
Bordaawaelchli
andcommitted
Apply suggestions from code review
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
1 parent 6dfcbc5 commit ac7d24b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pytorch_lightning/core/saving.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ def update_hparams(hparams, updates):
5252
"""
5353
Overrides hparams with new values
5454
55-
>>> hparams = {'a', {'b': 2}, 'c': 1}
55+
>>> hparams = {'a': {'b': 2}, 'c': 1}
5656
>>> updates = {'a': {'b': 4}, 'c': 7}
5757
>>> update_hparams(hparams, updates)
58-
>>> assert hparams['a']['b'] == 4, 'update hparams failed'
59-
>>> assert hparams['c'] == 7, 'update hparams failed'
58+
>>> hparams['a']['b']
59+
4
60+
>>> hparams['c']
61+
7
6062
6163
Args:
6264
hparams:

0 commit comments

Comments
 (0)