Home
last modified time | relevance | path

Searched refs:double_multiplier (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc53 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplier() argument
55 if (double_multiplier == 0.) { in QuantizeMultiplier()
65 int64_t q_fixed = IntegerFrExp(double_multiplier, shift); in QuantizeMultiplier()
67 const double q = std::frexp(double_multiplier, shift); in QuantizeMultiplier()
93 void QuantizeMultiplierGreaterThanOne(double double_multiplier, in QuantizeMultiplierGreaterThanOne() argument
96 TFLITE_CHECK_GT(double_multiplier, 1.); in QuantizeMultiplierGreaterThanOne()
97 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
101 void QuantizeMultiplierSmallerThanOneExp(double double_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
104 TFLITE_CHECK_LT(double_multiplier, 1.); in QuantizeMultiplierSmallerThanOneExp()
105 TFLITE_CHECK_GT(double_multiplier, 0.); in QuantizeMultiplierSmallerThanOneExp()
[all …]
Dquantization_util.h176 void QuantizeMultiplierSmallerThanOneExp(double double_multiplier,
184 void QuantizeMultiplierGreaterThanOne(double double_multiplier,
195 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier,
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dnumerical_utils.cc30 QuantizedMultiplier QuantizeMultiplier(double double_multiplier) { in QuantizeMultiplier() argument
31 if (double_multiplier < 1e-6) { in QuantizeMultiplier()
36 const double q = frexp(double_multiplier, &shift); in QuantizeMultiplier()
Dnumerical_utils.h33 QuantizedMultiplier QuantizeMultiplier(double double_multiplier);