Model.h File
Model — the simplified entry point for loading and running an MPK on the Modalix chip. More...
Included Headers
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | internal |
Classes Index
| class | Model |
|
Loaded form of an MPK; the simplified entry point to run inference on Modalix. More... | |
| struct | ModelInfo |
|
Diagnostic snapshot of how the route planner resolved the model. More... | |
| struct | RouteNeeds |
|
What the model fundamentally needs in its pre/post chain (derived from manifest dtypes). More... | |
| struct | RouteCapabilities |
|
What pre/post adapters the MPK provides (read from manifest stages). More... | |
| struct | RouteSelection |
|
What the planner actually included in the materialized route. More... | |
| struct | OutputTopology |
|
Output topology: how many tensors the model emits, and whether they're physically packed. More... | |
| struct | InferenceTerminalPolicy |
|
Where the inference pipeline should terminate. More... | |
| struct | PreprocessRequirements |
|
Concrete preprocess parameters resolved by the planner from the MPK manifest. More... | |
| struct | Options |
| struct | SessionOptions |
|
Options for Model::session() — controls how the model assembles into a NodeGroup. More... | |
| class | Runner |
|
Long-lived execution handle returned by Model::build(...). More... | |
Description
Model — the simplified entry point for loading and running an MPK on the Modalix chip.
Model is the user-facing wrapper around an MPK (model pack) .tar.gz. It loads the file, extracts and validates the manifest, runs the route planner, and exposes ready-to-use NodeGroup fragments (preprocess, inference, postprocess) plus convenience run() and build() methods that drive a one-shot inference. Internally a Model is a Session wrapper: the same composition, validation, and runtime machinery the Session API exposes powers Model underneath. New users start with Model::run(input); advanced users compose their own Session from model.session() plus extra Nodes.
- See Also
"Models" in the design deep dive (§0.7 — The main concepts)
- See Also
"Sessions: the assembly contract" (§0.12) for what Model wraps
- See Also
"MPK contract" (§0.16) for the file format Model loads
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.