Lines Matching refs:double_multiplier
73 bool QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, int32_t* shift) { in QuantizeMultiplier() argument
74 if (double_multiplier == 0.) { in QuantizeMultiplier()
79 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier()
105 bool QuantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
107 NN_RET_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOneExp()
108 NN_RET_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOneExp()
109 NN_RET_CHECK(QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift)); in QuantizeMultiplierSmallerThanOneExp()
114 bool QuantizeMultiplierSmallerThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOne() argument
116 NN_OPS_CHECK(double_multiplier >= 0.); in QuantizeMultiplierSmallerThanOne()
117 NN_OPS_CHECK(double_multiplier < 1.); in QuantizeMultiplierSmallerThanOne()
118 if (double_multiplier == 0.) { in QuantizeMultiplierSmallerThanOne()
123 NN_OPS_CHECK(double_multiplier > 0.); in QuantizeMultiplierSmallerThanOne()
124 const double q = std::frexp(double_multiplier, right_shift); in QuantizeMultiplierSmallerThanOne()
138 bool QuantizeMultiplierGreaterThanOne(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
140 NN_OPS_CHECK(double_multiplier > 1.); in QuantizeMultiplierGreaterThanOne()
141 const double q = std::frexp(double_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()