Skip to main content

Dequant Class

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

Declaration

class simaai::neat::Dequant { ... }

Included Headers

#include <Dequant.h>

Base classes

classNode
classNodeContractProvider
classNodeContractConfigurable

Public Constructors Index

Dequant (DequantOptions opt={})

Construct with optional DequantOptions. 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 DequantOptions &options () const

Inspect the Node's options. More...

Private Member Attributes Index

DequantOptionsopt_
std::shared_ptr< ConfigHolder >config_holder_

Description

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

Inserted by the route planner after MLA stages on the INT8 path. Application code rarely adds this directly — it appears via planner-generated routing or via a DetessDequant fusion.

See Also

"The dtype contract" page in /concepts/dtype_contract

Definition at line 70 of file Dequant.h.

Public Constructors

Dequant()

simaai::neat::Dequant::Dequant (DequantOptions opt={})
explicit

Construct with optional DequantOptions.

Definition at line 73 of file Dequant.h.

Public Member Functions

apply_compiled_contract()

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

Apply a compiled contract back into this Node.

Definition at line 90 of file Dequant.h.

backend_fragment()

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

GStreamer fragment this Node emits.

Definition at line 93 of file Dequant.h.

caps_behavior()

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

Whether the Node negotiates static or dynamic caps.

Definition at line 81 of file Dequant.h.

81 NodeCapsBehavior caps_behavior() const override {
82 return NodeCapsBehavior::Static;
83 }

compile_node_contract()

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

Compile this Node's contract from the given input.

Definition at line 87 of file Dequant.h.

contract_definition()

NodeContractDefinition simaai::neat::Dequant::contract_definition ()

Structural contract definition for this Node.

Definition at line 85 of file Dequant.h.

element_names()

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

Deterministic element names this Node will create.

Definition at line 95 of file Dequant.h.

kind()

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

Type label for this Node kind.

Definition at line 77 of file Dequant.h.

77 std::string kind() const override {
78 return "Dequant";
79 }

options()

const DequantOptions & simaai::neat::Dequant::options ()
inline

Inspect the Node's options.

Definition at line 98 of file Dequant.h.

98 const DequantOptions& options() const {
99 return opt_;
100 }

Private Member Attributes

config_holder_

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

Definition at line 108 of file Dequant.h.

108 std::shared_ptr<ConfigHolder> config_holder_;

opt_

DequantOptions simaai::neat::Dequant::opt_

Definition at line 107 of file Dequant.h.

107 DequantOptions opt_;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.