Skip to main content

PreprocessRequirements Struct

Concrete preprocess parameters resolved by the planner from the MPK contract. 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 contract.

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 198 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 208 of file Model.h.

has_preproc_stage

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

True if the route includes a preprocess stage.

Definition at line 199 of file Model.h.

input_format

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

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

Definition at line 204 of file Model.h.

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 202 of file Model.h.

output_dtype

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

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

Definition at line 206 of file Model.h.

output_format

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

Format produced after preprocess (handed to MLA).

Definition at line 205 of file Model.h.

output_shape

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

Output tensor shape after preprocess.

Definition at line 209 of file Model.h.

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 211 of file Model.h.

q_zp

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

Per-tensor quant zero-point.

Definition at line 213 of file Model.h.

quant_needed

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

True if FP32→INT8 quantization is part of preprocess.

Definition at line 200 of file Model.h.

slice_shape

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

Tile geometry when tess_needed is true; empty otherwise.

Definition at line 210 of file Model.h.

tess_needed

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

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

Definition at line 201 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.