Searched refs:double_multiplier (Results 1 – 2 of 2) sorted by relevance
/frameworks/ml/nn/common/ |
D | OperationsUtils.cpp | 153 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int* shift) { in QuantizeMultiplier() argument 154 if (double_multiplier == 0.) { in QuantizeMultiplier() 159 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier() 171 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, in QuantizeMultiplierSmallerThanOne() argument 174 NN_OPS_CHECK(double_multiplier >= 0.); in QuantizeMultiplierSmallerThanOne() 175 NN_OPS_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOne() 176 if (double_multiplier == 0.) { in QuantizeMultiplierSmallerThanOne() 181 NN_OPS_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOne() 182 const double q = std::frexp(double_multiplier, right_shift); in QuantizeMultiplierSmallerThanOne() 196 bool QuantizeMultiplierGreaterThanOne(double double_multiplier, in QuantizeMultiplierGreaterThanOne() argument [all …]
|
/frameworks/ml/nn/common/include/ |
D | OperationsUtils.h | 179 __wur bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int* shift); 182 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, 187 bool QuantizeMultiplierGreaterThanOne(double double_multiplier,
|