Lines Matching refs:double_multiplier

177 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()
222 if (double_multiplier == 0.) { in QuantizeMultiplierSmallerThanOne()
227 NN_OPS_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOne()
228 const double q = std::frexp(double_multiplier, right_shift); in QuantizeMultiplierSmallerThanOne()
242 bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
244 NN_OPS_CHECK(double_multiplier > 1.); in QuantizeMultiplierGreaterThanOne()
245 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()