We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfcbc5 commit ac7d24bCopy full SHA for ac7d24b
pytorch_lightning/core/saving.py
@@ -52,11 +52,13 @@ def update_hparams(hparams, updates):
52
"""
53
Overrides hparams with new values
54
55
- >>> hparams = {'a', {'b': 2}, 'c': 1}
+ >>> hparams = {'a': {'b': 2}, 'c': 1}
56
>>> updates = {'a': {'b': 4}, 'c': 7}
57
>>> update_hparams(hparams, updates)
58
- >>> assert hparams['a']['b'] == 4, 'update hparams failed'
59
- >>> assert hparams['c'] == 7, 'update hparams failed'
+ >>> hparams['a']['b']
+ 4
60
+ >>> hparams['c']
61
+ 7
62
63
Args:
64
hparams:
0 commit comments