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,trainer) are dispatched to their dataclass; themodelsection first has upstream key spellings translated to the xnn canonical names (translate_model_keys()), then its other keys are collected intoModelConfig.extra(the model’s options; those the model does not use are reported when it is built). Known top-level scalars (device,seed,output_dir,subtracted_dispersion) are applied directly. Any other key is ignored with anIgnoredOptionWarning.