Skip to main content

PreprocessRequirements Struct

Concrete preprocess parameters resolved by the planner from the MPK manifest. More...

Declaration

struct simaai::neat::Model::PreprocessRequirements { ... }

Included Headers

#include <Model.h>

Public Member Attributes Index

boolhas_preproc_stage = false

True if the route includes a preprocess stage. More...

boolquant_needed = false

True if FP32→INT8 quantization is part of preprocess. More...

booltess_needed = false

True if tessellation (tile layout) is part of preprocess. More...

std::stringinput_media_type

Expected input media type (e.g., "video/x-raw", "application/vnd.simaai.tensor"). More...

std::stringinput_format

Expected input format token (e.g., "NV12", "RGB", "FP32"). More...

std::stringoutput_format

Format produced after preprocess (handed to MLA). More...

std::stringoutput_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

Output tensor shape after preprocess. More...

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

std::vector<int> simaai::neat::Model::PreprocessRequirements::axis_perm

Axis permutation applied by layout_convert, if any (empty if no permutation).

Definition at line 183 of file Model.h.

183 std::vector<int> axis_perm;

has_preproc_stage

bool simaai::neat::Model::PreprocessRequirements::has_preproc_stage = false

True if the route includes a preprocess stage.

Definition at line 174 of file Model.h.

174 bool has_preproc_stage = false;

input_format

std::string simaai::neat::Model::PreprocessRequirements::input_format

Expected input format token (e.g., "NV12", "RGB", "FP32").

Definition at line 179 of file Model.h.

179 std::string input_format;

input_media_type

std::string simaai::neat::Model::PreprocessRequirements::input_media_type

Expected input media type (e.g., "video/x-raw", "application/vnd.simaai.tensor").

Definition at line 177 of file Model.h.

177 std::string input_media_type;

output_dtype

std::string simaai::neat::Model::PreprocessRequirements::output_dtype

Dtype produced after preprocess (e.g., "INT8", "BF16").

Definition at line 181 of file Model.h.

181 std::string output_dtype;

output_format

std::string simaai::neat::Model::PreprocessRequirements::output_format

Format produced after preprocess (handed to MLA).

Definition at line 180 of file Model.h.

180 std::string output_format;

output_shape

std::vector<int> simaai::neat::Model::PreprocessRequirements::output_shape

Output tensor shape after preprocess.

Definition at line 184 of file Model.h.

184 std::vector<int> output_shape;

q_scale

std::optional<double> simaai::neat::Model::PreprocessRequirements::q_scale

Per-tensor quant scale when quant_needed is true (per-channel scales live in manifest).

Definition at line 186 of file Model.h.

186 std::optional<double> q_scale;

q_zp

std::optional<std::int64_t> simaai::neat::Model::PreprocessRequirements::q_zp

Per-tensor quant zero-point.

Definition at line 188 of file Model.h.

188 std::optional<std::int64_t> q_zp;

quant_needed

bool simaai::neat::Model::PreprocessRequirements::quant_needed = false

True if FP32→INT8 quantization is part of preprocess.

Definition at line 175 of file Model.h.

175 bool quant_needed = false;

slice_shape

std::vector<int> simaai::neat::Model::PreprocessRequirements::slice_shape

Tile geometry when tess_needed is true; empty otherwise.

Definition at line 185 of file Model.h.

185 std::vector<int> slice_shape;

tess_needed

bool simaai::neat::Model::PreprocessRequirements::tess_needed = false

True if tessellation (tile layout) is part of preprocess.

Definition at line 176 of file Model.h.

176 bool tess_needed = false;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.