Skip to main content

Model

Loaded MPKs, preprocess plans, and the simplified inference entry point. More...

Classes Index

classModel

Loaded form of an MPK; the simplified entry point to run inference on Modalix. More...

structResizeSpec

Resize / letterbox / crop parameters. More...

structColorConvertSpec

Color-format conversion parameters. More...

structLayoutConvertSpec

Axis-permutation parameters for HWC↔CHW-style layout conversions. More...

structNormalizeSpec

Mean/stddev normalization parameters. More...

structQuantizeSpec

INT8 (or other low-precision) quantization parameters. More...

structTessellateSpec

MLA tessellation (tile-shuffle) parameters. More...

structPreprocessExplicitKnobs

Per-stage flags recording which preprocess fields the user set explicitly. More...

structTransform

Discriminated union of all per-stage transform specs. More...

structPreprocessOptions

User-facing preprocess intent — what the application asks for. More...

structPreprocessContract

Per-input contract describing what the preprocess stage expects to receive. More...

structPreprocessMetaContract

Metadata-side contract — names and fields the preprocess stage requires. More...

structResolvedPreprocessPlan

Final resolved plan — what the framework actually compiled and runs. More...

Enumerations Index

enum classAutoFlag { ... }

Tri-state knob: let the planner decide, force on, or force off. More...

enum classInputKind { ... }

What kind of input the user is feeding the preprocess pipeline. More...

enum classResizeMode { ... }

How the resize stage maps non-matching input dimensions to the model's input shape. More...

enum classPreprocessColorFormat { ... }

Color format hint for the color-convert stage. More...

enum classNormalizePreset { ... }

Common normalize presets — convenient shorthand for famous mean/stddev pairs. More...

enum classPreprocessGraphFamily { ... }

Which preprocess graph family the planner selected. More...

enum classTransformType { ... }

Which transformation a Transform represents — used in user-supplied transform lists. More...

Description

Loaded MPKs, preprocess plans, and the simplified inference entry point.

Enumerations

AutoFlag

enum class simaai::neat::AutoFlag
strong

Tri-state knob: let the planner decide, force on, or force off.

Enumeration values
AutoPlanner decides based on model contract and inputs (= 0)
OnForce this stage on (= 1)
OffForce this stage off (= 2)

Used pervasively across PreprocessOptions so the application can express "I don't care, do the right thing" (Auto) without losing the ability to override.

Definition at line 32 of file PreprocessPlan.h.

32enum class AutoFlag {
33 Auto = 0,
34 On = 1,
35 Off = 2,
36};

InputKind

enum class simaai::neat::InputKind
strong

What kind of input the user is feeding the preprocess pipeline.

Enumeration values
AutoPlanner infers from caps / sample type (= 0)
ImageDecoded image (planar/packed pixels) (= 1)
TensorAlready-shaped tensor; preprocess is mostly a pass-through (= 2)

Definition at line 40 of file PreprocessPlan.h.

40enum class InputKind {
41 Auto = 0,
42 Image = 1,
43 Tensor = 2,
44};

NormalizePreset

enum class simaai::neat::NormalizePreset
strong

Common normalize presets — convenient shorthand for famous mean/stddev pairs.

Enumeration values
NoneUse the explicit mean/stddev fields (= 0)
ImageNetStandard ImageNet stats (= 1)
COCO_YOLOStats commonly used by YOLO-family detectors trained on COCO (= 2)

Definition at line 67 of file PreprocessPlan.h.

67enum class NormalizePreset {
68 None = 0,
69 ImageNet = 1,
70 COCO_YOLO = 2,
71};

PreprocessColorFormat

enum class simaai::neat::PreprocessColorFormat
strong

Color format hint for the color-convert stage.

Enumeration values
AutoPlanner picks based on caps/contract (= 0)
RGBPacked 8-bit RGB (= 1)
BGRPacked 8-bit BGR (= 2)
GRAY88-bit single-channel grayscale (= 3)
NV12Y plane + interleaved UV plane (semi-planar 4:2:0) (= 4)
I420Y, U, V planes (planar 4:2:0) (= 5)

Definition at line 56 of file PreprocessPlan.h.

57 Auto = 0,
58 RGB = 1,
59 BGR = 2,
60 GRAY8 = 3,
61 NV12 = 4,
62 I420 = 5,
63};

PreprocessGraphFamily

enum class simaai::neat::PreprocessGraphFamily
strong

Which preprocess graph family the planner selected.

Enumeration values
DisabledNo preprocess graph (model accepts raw tensors) (= 0)
PreprocPreprocess only; quant/tess happen inside the MLA (= 1)
QuantPreprocess + quant; tess happens inside the MLA (= 2)
TessPreprocess + tess; quant happens inside the MLA (= 3)
QuantTessPreprocess + quant + tess; nothing happens inside the MLA (= 4)

The four variants correspond to the four corners of the dtype-contract decision tree (BF16/INT8 × inside/outside MLA tess).

Definition at line 76 of file PreprocessPlan.h.

77 Disabled = 0,
78 Preproc = 1,
79 Quant = 2,
80 Tess = 3,
81 QuantTess = 4,
82};

ResizeMode

enum class simaai::neat::ResizeMode
strong

How the resize stage maps non-matching input dimensions to the model's input shape.

Enumeration values
StretchAnisotropic scale to fit; aspect ratio not preserved (= 0)
LetterboxScale to fit while preserving aspect; pad the rest with pad_value (= 1)
CropCenter-crop to the target shape after isotropic scale (= 2)

Definition at line 48 of file PreprocessPlan.h.

48enum class ResizeMode {
49 Stretch = 0,
50 Letterbox = 1,
51 Crop = 2,
52};

TransformType

enum class simaai::neat::TransformType
strong

Which transformation a Transform represents — used in user-supplied transform lists.

Enumeration values
ResizeResize / letterbox / crop (= 0)
ColorConvertColor-format conversion (= 1)
LayoutConvertAxis permutation (e.g., HWC → CHW) (= 2)
NormalizeMean/stddev normalization (= 3)
QuantizeINT8 quantization (= 4)
TessellateMLA-tile reshuffle (= 5)

Definition at line 86 of file PreprocessPlan.h.

86enum class TransformType {
87 Resize = 0,
88 ColorConvert = 1,
89 LayoutConvert = 2,
90 Normalize = 3,
91 Quantize = 4,
92 Tessellate = 5,
93};

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.