MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / override_config

Function override_config

utils/hparams.py:15–20  ·  view source on GitHub ↗
(old_config: dict, new_config: dict)

Source from the content-addressed store, hash-verified

13
14
15def override_config(old_config: dict, new_config: dict):
16 for k, v in new_config.items():
17 if isinstance(v, dict) and k in old_config:
18 override_config(old_config[k], new_config[k])
19 else:
20 old_config[k] = v
21
22
23def set_hparams(config='', exp_name='', hparams_str='', print_hparams=True, global_hparams=True):

Callers 1

load_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected