Dequant.h File
Dequant Node — CVU kernel that dequantizes INT8 to FP32 (scale + zero-point). More...
Included Headers
#include "builder/Node.h"
#include "builder/NodeContractConfigurable.h"
#include "builder/NodeContractProvider.h"
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | DequantOptions |
| class | Dequant |
|
CVU kernel Node that dequantizes INT8 tensors to FP32 using scale + zero-point. More... | |
Description
Dequant Node — CVU kernel that dequantizes INT8 to FP32 (scale + zero-point).
Reads INT8 tensors and emits FP32 using the per-tensor scale and zero-point bound to the model. Inserted after MLA stages on the INT8 path so downstream postprocess (argmax, NMS, etc.) sees float values.
- See Also
"The dtype contract" page in /concepts/dtype_contract
File Listing
The file content with the documentation metadata removed is:
24namespace simaai::neat {
34struct DequantOptions {
36 DequantOptions() = default;
38 explicit DequantOptions(const simaai::neat::Model& model);
40 std::string element_name;
42 bool model_managed = false;
54 int num_buffers = 0;
55 int num_buffers_model = 0;
56 bool num_buffers_locked = false;
73 explicit Dequant(DequantOptions opt = {});
81 NodeCapsBehavior caps_behavior() const override {
85 NodeContractDefinition contract_definition() const override;
87 bool compile_node_contract(const ContractCompileInput& input, CompiledNodeContract* out,
90 void apply_compiled_contract(const CompiledNodeContract& contract, std::string* err) override;
93 std::string backend_fragment(int node_index) const override;
95 std::vector<std::string> element_names(int node_index) const override;
98 const DequantOptions& options() const {
107 DequantOptions opt_;
113namespace simaai::neat::nodes {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.