Skip to main content

Module config

Module config 

Source
Expand description

ConfigOutputs, the programmatic form of a model’s output description.

This is what DecoderBuilder::with_config takes, and what the JSON and YAML config strings deserialize into. Each ConfigOutput declares one output tensor’s role, shape, and quantization; the builder reads the set of them to select a model-type variant.

Declare shape and dshape in physical memory order, outermost axis first. See the output tensor physical-order contract in the crate’s ARCHITECTURE.md — mis-declaring it makes every element access index the wrong byte, and nothing at runtime can detect it.

Structs§

ConfigOutputs
Used to represent the outputs in the model configuration.

Enums§

ConfigOutput
ConfigOutputRef