Home
last modified time | relevance | path

Searched refs:quantized_multiplier (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NeuralNetworks/common/
DOperationsUtils.cpp175 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument
177 *quantized_multiplier = 0; in QuantizeMultiplier()
203 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()
207 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
211 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()
216 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOne() argument
221 *quantized_multiplier = 0; in QuantizeMultiplierSmallerThanOne()
236 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplierSmallerThanOne()
240 bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
252 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplierGreaterThanOne()
DQuantUtils.h19 inline int32_t MultiplyByQuantizedMultiplier(int32_t x, int32_t quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier() argument
25 SaturatingRoundingDoublingHighMul(x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/packages/modules/NeuralNetworks/common/include/
DOperationsUtils.h164 __wur bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier,
167 __wur bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier,
174 int32_t* quantized_multiplier, int32_t* left_shift);
176 __wur bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier,