xnn.common.config.loaders.apply_overrides#
- xnn.common.config.loaders.apply_overrides(cfg, overrides)[source]#
Apply
a.b=cstyle dotted overrides in place.Shared by the CLI and Hydra paths so the same override syntax works everywhere. Each value is parsed with
ast.literal_eval()and falls back to the raw string if parsing fails. Amodelkey that is not a field ofModelConfigis a model option (model.extra), as in a config file. An entry without=, or one naming a key the config does not have, is ignored with anIgnoredOptionWarning.Config.__post_init__()is re-run afterwards to re-synchronize the cutoffs.