Searched refs:double_multiplier (Results 1 – 2 of 2) sorted by relevance
/packages/modules/NeuralNetworks/common/ |
D | OperationsUtils.cpp | 175 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument 176 if (double_multiplier == 0.) { in QuantizeMultiplier() 181 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier() 207 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument 209 NN_RET_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOneExp() 210 NN_RET_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOneExp() 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 218 NN_OPS_CHECK(double_multiplier >= 0.); in QuantizeMultiplierSmallerThanOne() 219 NN_OPS_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOne() [all …]
|
/packages/modules/NeuralNetworks/common/include/ |
D | OperationsUtils.h | 164 __wur bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, 167 __wur bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier, 173 __wur bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, 176 __wur bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier,
|