xnn.common.config.options.model_options#

xnn.common.config.options.model_options(cfg)[source]#

The options of a model config, for a from_config to read.

A copy, so that the caller may change it; inside build_model() the reads are recorded, so that unused options can be reported.

Parameters:

cfg (ModelConfig) – The model configuration.

Returns:

cfg.extra (empty when None).

Return type:

ModelOptions