Preproc Class
Fused CVU preprocessing Node — resize + color-convert + normalize (+ optional tess). More...
Declaration
Included Headers
Base classes
| class | Node |
| class | OutputSpecProvider |
| class | InputContractConfigurable |
| class | NodeContractProvider |
| class | NodeContractConfigurable |
Public Constructors Index
| Preproc (PreprocOptions opt={}) | |
|
Construct with optional PreprocOptions. More... | |
Public Member Functions Index
| std::string | kind () const override |
|
Type label for this Node kind. More... | |
| NodeCapsBehavior | caps_behavior () const override |
|
Whether the Node negotiates static or dynamic caps. More... | |
| std::string | backend_fragment (int node_index) const override |
|
GStreamer fragment this Node emits. More... | |
| std::vector< std::string > | element_names (int node_index) const override |
|
Deterministic element names this Node will create. More... | |
| OutputSpec | output_spec (const OutputSpec &input) const override |
|
Negotiated downstream caps produced by this Node. More... | |
| void | apply_input_contract (const InputContract &contract, std::string *err) override |
|
Apply an input contract from upstream. More... | |
| NodeContractDefinition | contract_definition () const override |
|
Structural contract definition for this Node. More... | |
| bool | compile_node_contract (const ContractCompileInput &input, CompiledNodeContract *out, std::string *err) const override |
|
Compile this Node's contract from the given input. More... | |
| void | apply_compiled_contract (const CompiledNodeContract &contract, std::string *err) override |
|
Apply a compiled contract back into this Node. More... | |
| const PreprocOptions & | options () const |
|
Inspect the Node's options. More... | |
| const std::string & | config_path () const |
|
Path to the kernel config JSON, if one was loaded from disk. More... | |
| const std::string & | config_snapshot_path () const |
|
Path to the snapshotted config JSON written during compilation. More... | |
| const nlohmann::json * | config_json () const |
|
Resolved kernel config JSON, or null if no config was supplied/loaded. More... | |
Private Member Functions Index
| void | materialize_config_from_input_contract (const InputContract &contract) |
Private Member Attributes Index
| PreprocOptions | opt_ |
| std::shared_ptr< PreprocConfigHolder > | config_holder_ |
| std::string | config_path_ |
Description
Fused CVU preprocessing Node — resize + color-convert + normalize (+ optional tess).
Implements the "Preproc" PreprocessGraphFamily. Place upstream of the MLA on the BF16 input path; pair with Quant/QuantTess instead when the model expects INT8 input.
Definition at line 194 of file Preproc.h.
Public Constructors
Preproc()
| explicit |
Construct with optional PreprocOptions.
Definition at line 201 of file Preproc.h.
Public Member Functions
apply_compiled_contract()
|
Apply a compiled contract back into this Node.
Definition at line 225 of file Preproc.h.
apply_input_contract()
|
Apply an input contract from upstream.
Definition at line 218 of file Preproc.h.
backend_fragment()
|
GStreamer fragment this Node emits.
Definition at line 212 of file Preproc.h.
caps_behavior()
| inline |
Whether the Node negotiates static or dynamic caps.
Definition at line 208 of file Preproc.h.
compile_node_contract()
|
Compile this Node's contract from the given input.
Definition at line 222 of file Preproc.h.
config_json()
|
Resolved kernel config JSON, or null if no config was supplied/loaded.
Definition at line 240 of file Preproc.h.
config_path()
| inline |
Path to the kernel config JSON, if one was loaded from disk.
Definition at line 232 of file Preproc.h.
config_snapshot_path()
| inline |
Path to the snapshotted config JSON written during compilation.
Definition at line 236 of file Preproc.h.
contract_definition()
|
Structural contract definition for this Node.
Definition at line 220 of file Preproc.h.
element_names()
|
Deterministic element names this Node will create.
Definition at line 214 of file Preproc.h.
kind()
| inline |
Type label for this Node kind.
Definition at line 204 of file Preproc.h.
options()
| inline |
Inspect the Node's options.
Definition at line 228 of file Preproc.h.
output_spec()
|
Negotiated downstream caps produced by this Node.
Definition at line 216 of file Preproc.h.
Private Member Functions
materialize_config_from_input_contract()
|
Definition at line 245 of file Preproc.h.
Private Member Attributes
config_holder_
|
Definition at line 247 of file Preproc.h.
config_path_
|
Definition at line 248 of file Preproc.h.
opt_
|
Definition at line 246 of file Preproc.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.