MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeDequantizeOperator

Function MakeDequantizeOperator

tensorflow/lite/tools/optimize/model_utils.cc:54–64  ·  view source on GitHub ↗

Creates a Dequantize OperatorT object.

Source from the content-addressed store, hash-verified

52
53// Creates a Dequantize OperatorT object.
54void MakeDequantizeOperator(ModelT* model, std::unique_ptr<OperatorT>* op,
55 int32_t input, int32_t output) {
56 OperatorT* op_raw = new OperatorT;
57 // Version 2 and onwards supports INT8 inputs.
58 op_raw->opcode_index =
59 GetOrInsertOpCodeIndex(model, BuiltinOperator_DEQUANTIZE, 2);
60 op_raw->inputs = {input};
61 op_raw->outputs = {output};
62
63 op->reset(op_raw);
64}
65
66// Creates a Quantize OperatorT object.
67void MakeQuantizeOperator(ModelT* model, std::unique_ptr<OperatorT>* op,

Callers 2

SetOutputTypeFunction · 0.70
QuantizeOpInputFunction · 0.70

Calls 2

GetOrInsertOpCodeIndexFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected