Searched refs:IntegerFrExp (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util_test.cc | 195 TEST(QuantizationUtilTest, IntegerFrExp) { in TEST() argument 197 int64_t result = IntegerFrExp(0.0, &shift); in TEST() 201 result = IntegerFrExp(1.0, &shift); in TEST() 205 result = IntegerFrExp(0.25, &shift); in TEST() 209 result = IntegerFrExp(-1.0, &shift); in TEST() 213 result = IntegerFrExp(123.45, &shift); in TEST() 217 result = IntegerFrExp(NAN, &shift); in TEST() 221 result = IntegerFrExp(INFINITY, &shift); in TEST() 225 result = IntegerFrExp(-INFINITY, &shift); in TEST() 232 int32_t result = IntegerFrExp(0.0, &shift); in TEST() [all …]
|
D | quantization_util.cc | 64 int64_t q_fixed = IntegerFrExp(double_multiplier, shift); in QuantizeMultiplier() 97 int64_t IntegerFrExp(double input, int* shift) { in IntegerFrExp() function 212 const int64_t a_fraction = IntegerFrExp(a, &a_shift); in IntegerDoubleMultiply() 214 const int64_t b_fraction = IntegerFrExp(b, &b_shift); in IntegerDoubleMultiply() 227 const int64_t a_fraction = IntegerFrExp(a, &a_shift); in IntegerDoubleCompare() 229 const int64_t b_fraction = IntegerFrExp(b, &b_shift); in IntegerDoubleCompare() 269 int64_t fraction = IntegerFrExp(input_beta, &shift); in PreprocessSoftmaxScaling()
|
D | quantization_util.h | 215 int64_t IntegerFrExp(double input, int* shift);
|