PreprocessOptions Struct
User-facing preprocess intent — what the application asks for. More...
Declaration
Included Headers
Public Member Attributes Index
| InputKind | kind = InputKind::Auto |
|
Whether inputs are images or pre-shaped tensors. More... | |
| AutoFlag | enable = AutoFlag::Auto |
|
Master switch — set Off to skip preprocess entirely. More... | |
| int | input_max_width = 0 |
|
Upper bound on input width (px); 0 = no bound. More... | |
| int | input_max_height = 0 |
|
Upper bound on input height (px); 0 = no bound. More... | |
| int | input_max_depth = 0 |
|
Upper bound on input channel count; 0 = no bound. More... | |
| ResizeSpec | resize |
|
Resize / letterbox / crop intent. More... | |
| ColorConvertSpec | color_convert |
|
Color-format conversion intent. More... | |
| LayoutConvertSpec | layout_convert |
|
Axis-permutation intent. More... | |
| NormalizeSpec | normalize |
|
Normalize intent. More... | |
| QuantizeSpec | quantize |
|
Quantize intent. More... | |
| TessellateSpec | tessellate |
|
Tessellate intent. More... | |
| std::vector< Transform > | transforms |
|
Ordered explicit transforms; if non-empty, overrides the per-stage specs above. More... | |
| NormalizePreset | preset = ... |
|
If non-None, supplies mean/stddev defaults. More... | |
Description
User-facing preprocess intent — what the application asks for.
The planner takes this plus the model's MPK manifest and produces a ResolvedPreprocessPlan. Most fields default to Auto/zero; set only what you need to override.
Definition at line 232 of file PreprocessPlan.h.
Public Member Attributes
color_convert
|
Color-format conversion intent.
Definition at line 241 of file PreprocessPlan.h.
enable
|
Master switch — set Off to skip preprocess entirely.
Definition at line 234 of file PreprocessPlan.h.
input_max_depth
|
Upper bound on input channel count; 0 = no bound.
Definition at line 238 of file PreprocessPlan.h.
input_max_height
|
Upper bound on input height (px); 0 = no bound.
Definition at line 237 of file PreprocessPlan.h.
input_max_width
|
Upper bound on input width (px); 0 = no bound.
Definition at line 236 of file PreprocessPlan.h.
kind
|
Whether inputs are images or pre-shaped tensors.
Definition at line 233 of file PreprocessPlan.h.
layout_convert
|
Axis-permutation intent.
Definition at line 242 of file PreprocessPlan.h.
normalize
|
preset
|
If non-None, supplies mean/stddev defaults.
- Initialiser
Definition at line 249 of file PreprocessPlan.h.
quantize
|
resize
|
Resize / letterbox / crop intent.
Definition at line 240 of file PreprocessPlan.h.
tessellate
|
transforms
|
Ordered explicit transforms; if non-empty, overrides the per-stage specs above.
Definition at line 247 of file PreprocessPlan.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.