xnn.common.config.loaders.from_dict#
- xnn.common.config.loaders.from_dict(d)[source]#
Build a typed
Configfrom a plain nested dict.This is the funnel every frontend loader passes through. Recognized sections (
model,data,optim) are dispatched to their dataclass; themodelsection first has upstream key spellings translated to the xnn canonical names (translate_model_keys()), then unknown keys inside it are collected intoModelConfig.extra. Known top-level scalars (device,seed,output_dir) are applied directly. Unrecognized keys are ignored.