メインコンテンツまでスキップ

Quant Class

CVU kernel Node that quantizes FP32 tensors to INT8 using scale + zero-point. More...

Declaration​

class simaai::neat::Quant { ... }

Included Headers​

#include <Quant.h>

Base classes​

classNode
classNodeContractProvider
classNodeContractConfigurable

Public Constructors Index​

Quant (QuantOptions opt={})

Construct with optional QuantOptions. More...

Public Member Functions Index​

std::stringkind () const override

Type label for this Node kind. More...

NodeCapsBehaviorcaps_behavior () const override

Whether the Node negotiates static or dynamic caps. More...

NodeContractDefinitioncontract_definition () const override

Structural contract definition for this Node. More...

boolcompile_node_contract (const ContractCompileInput &input, CompiledNodeContract *out, std::string *err) const override

Compile this Node's contract from the given input. More...

voidapply_compiled_contract (const CompiledNodeContract &contract, std::string *err) override

Apply a compiled contract back into this Node. More...

std::stringbackend_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...

const nlohmann::json *config_json () const

Resolved kernel config JSON, or null if no config was supplied/loaded. More...

const QuantOptions &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...

Private Member Attributes Index​

QuantOptionsopt_
std::shared_ptr< ConfigHolder >config_holder_
std::stringconfig_path_

Description​

CVU kernel Node that quantizes FP32 tensors to INT8 using scale + zero-point.

Inserted by the route planner at the MLA boundary on the INT8 input path. Application code rarely adds this directly — it appears via planner-generated routing or via a QuantTess fusion.

See Also

"The dtype contract" page in /concepts/dtype_contract

Definition at line 68 of file Quant.h.

Public Constructors​

Quant()​

simaai::neat::Quant::Quant (QuantOptions opt={})
explicit

Construct with optional QuantOptions.

Definition at line 71 of file Quant.h.

Public Member Functions​

apply_compiled_contract()​

void simaai::neat::Quant::apply_compiled_contract (const CompiledNodeContract & contract, std::string * err)

Apply a compiled contract back into this Node.

Definition at line 88 of file Quant.h.

backend_fragment()​

std::string simaai::neat::Quant::backend_fragment (int node_index)

GStreamer fragment this Node emits.

Definition at line 90 of file Quant.h.

caps_behavior()​

NodeCapsBehavior simaai::neat::Quant::caps_behavior ()
inline

Whether the Node negotiates static or dynamic caps.

Definition at line 79 of file Quant.h.

compile_node_contract()​

bool simaai::neat::Quant::compile_node_contract (const ContractCompileInput & input, CompiledNodeContract * out, std::string * err)

Compile this Node's contract from the given input.

Definition at line 85 of file Quant.h.

config_json()​

const nlohmann::json * simaai::neat::Quant::config_json ()

Resolved kernel config JSON, or null if no config was supplied/loaded.

Definition at line 95 of file Quant.h.

config_path()​

const std::string & simaai::neat::Quant::config_path ()
inline

Path to the kernel config JSON, if one was loaded from disk.

Definition at line 102 of file Quant.h.

contract_definition()​

NodeContractDefinition simaai::neat::Quant::contract_definition ()

Structural contract definition for this Node.

Definition at line 83 of file Quant.h.

element_names()​

std::vector< std::string > simaai::neat::Quant::element_names (int node_index)

Deterministic element names this Node will create.

Definition at line 92 of file Quant.h.

kind()​

std::string simaai::neat::Quant::kind ()
inline

Type label for this Node kind.

Definition at line 75 of file Quant.h.

options()​

const QuantOptions & simaai::neat::Quant::options ()
inline

Inspect the Node's options.

Definition at line 98 of file Quant.h.

Private Member Attributes​

config_holder_​

std::shared_ptr<ConfigHolder> simaai::neat::Quant::config_holder_

Definition at line 112 of file Quant.h.

config_path_​

std::string simaai::neat::Quant::config_path_

Definition at line 113 of file Quant.h.

opt_​

QuantOptions simaai::neat::Quant::opt_

Definition at line 111 of file Quant.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.