Home
last modified time | relevance | path

Searched refs:double_multiplier (Results 1 – 2 of 2) sorted by relevance

/frameworks/ml/nn/common/
DOperationsUtils.cpp177 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument
178 if (double_multiplier == 0.) { in QuantizeMultiplier()
183 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier()
209 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
211 NN_RET_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOneExp()
212 NN_RET_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOneExp()
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
220 NN_OPS_CHECK(double_multiplier >= 0.); in QuantizeMultiplierSmallerThanOne()
221 NN_OPS_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOne()
[all …]
/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,
189 __wur bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier,
192 __wur bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier,