cerebras.modelzoo.common.utils.run.cli_parser.update_defaults#
- cerebras.modelzoo.common.utils.run.cli_parser.update_defaults(params: dict, default_params: dict) dict [source]#
Updates the params dict with global default for a key if a key is not present. Works on nested dictionaries and recursively updates defaults for nested dictionaries. All other types, apart from dict are considered as base type and aren’t updated recursively. :param params: dict holding the params. :param default_params: dict holding the default params.
- Returns
A dict containing the params, with the defaults updated