Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/
DOperationsUtils.cpp177 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument
179 *quantized_multiplier = 0; in QuantizeMultiplier()
205 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()
209 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
213 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()
218 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOne() argument
223 *quantized_multiplier = 0; in QuantizeMultiplierSmallerThanOne()
238 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplierSmallerThanOne()
242 bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
254 *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()
/frameworks/ml/nn/common/include/
DOperationsUtils.h180 __wur bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier,
183 __wur bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier,
190 int32_t* quantized_multiplier, int32_t* left_shift);
192 __wur bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier,