PreprocessRequirements Struct
Concrete preprocess parameters resolved by the planner from the MPK manifest. More...
Declaration
Included Headers
Public Member Attributes Index
| bool | has_preproc_stage = false |
|
True if the route includes a preprocess stage. More... | |
| bool | quant_needed = false |
|
True if FP32→INT8 quantization is part of preprocess. More... | |
| bool | tess_needed = false |
|
True if tessellation (tile layout) is part of preprocess. More... | |
| std::string | input_media_type |
|
Expected input media type (e.g., "video/x-raw", "application/vnd.simaai.tensor"). More... | |
| std::string | input_format |
|
Expected input format token (e.g., "NV12", "RGB", "FP32"). More... | |
| std::string | output_format |
|
Format produced after preprocess (handed to MLA). More... | |
| std::string | output_dtype |
|
Dtype produced after preprocess (e.g., "INT8", "BF16"). More... | |
| std::vector< int > | axis_perm |
|
Axis permutation applied by layout_convert, if any (empty if no permutation). More... | |
| std::vector< int > | output_shape |
| std::vector< int > | slice_shape |
|
Tile geometry when tess_needed is true; empty otherwise. More... | |
| std::optional< double > | q_scale |
|
Per-tensor quant scale when quant_needed is true (per-channel scales live in manifest). More... | |
| std::optional< std::int64_t > | q_zp |
|
Per-tensor quant zero-point. More... | |
Description
Concrete preprocess parameters resolved by the planner from the MPK manifest.
Returned by preprocess_requirements(). Useful when an application needs to mirror the model's preprocessing in custom code (e.g., when feeding inputs from a path the framework doesn't natively support and the user wants to apply identical resize/quantize/normalize).
Definition at line 173 of file Model.h.
Public Member Attributes
axis_perm
|
has_preproc_stage
|
True if the route includes a preprocess stage.
Definition at line 174 of file Model.h.
input_format
|
Expected input format token (e.g., "NV12", "RGB", "FP32").
Definition at line 179 of file Model.h.
input_media_type
|
Expected input media type (e.g., "video/x-raw", "application/vnd.simaai.tensor").
Definition at line 177 of file Model.h.
output_dtype
|
Dtype produced after preprocess (e.g., "INT8", "BF16").
Definition at line 181 of file Model.h.
output_format
|
Format produced after preprocess (handed to MLA).
Definition at line 180 of file Model.h.
output_shape
|
Output tensor shape after preprocess.
Definition at line 184 of file Model.h.
q_scale
|
q_zp
|
quant_needed
|
True if FP32→INT8 quantization is part of preprocess.
Definition at line 175 of file Model.h.
slice_shape
|
Tile geometry when tess_needed is true; empty otherwise.
Definition at line 185 of file Model.h.
tess_needed
|
True if tessellation (tile layout) is part of preprocess.
Definition at line 176 of file Model.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.