Lines Matching refs:double_multiplier
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
199 NN_OPS_CHECK(double_multiplier > 1.); in QuantizeMultiplierGreaterThanOne()
200 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()