Searched refs:IntegerFrExp (Results 1 – 4 of 4) sorted by relevance
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | quantization_util_test.cc | 237 int64_t result = tflite::IntegerFrExp(0.0, &shift); in TF_LITE_MICRO_TEST() 241 result = tflite::IntegerFrExp(1.0, &shift); in TF_LITE_MICRO_TEST() 245 result = tflite::IntegerFrExp(0.25, &shift); in TF_LITE_MICRO_TEST() 249 result = tflite::IntegerFrExp(-1.0, &shift); in TF_LITE_MICRO_TEST() 253 result = tflite::IntegerFrExp(123.45, &shift); in TF_LITE_MICRO_TEST() 257 result = tflite::IntegerFrExp(static_cast<double>(NAN), &shift); in TF_LITE_MICRO_TEST() 261 result = tflite::IntegerFrExp(static_cast<double>(INFINITY), &shift); in TF_LITE_MICRO_TEST() 265 result = tflite::IntegerFrExp(-static_cast<double>(INFINITY), &shift); in TF_LITE_MICRO_TEST() 272 int32_t result = tflite::IntegerFrExp(0.0, &shift); in TF_LITE_MICRO_TEST() 281 result = tflite::IntegerFrExp(1.0, &shift); in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util_test.cc | 198 TEST(QuantizationUtilTest, IntegerFrExp) { in TEST() argument 200 int64_t result = IntegerFrExp(0.0, &shift); in TEST() 204 result = IntegerFrExp(1.0, &shift); in TEST() 208 result = IntegerFrExp(0.25, &shift); in TEST() 212 result = IntegerFrExp(-1.0, &shift); in TEST() 216 result = IntegerFrExp(123.45, &shift); in TEST() 220 result = IntegerFrExp(NAN, &shift); in TEST() 224 result = IntegerFrExp(INFINITY, &shift); in TEST() 228 result = IntegerFrExp(-INFINITY, &shift); in TEST() 235 int32_t result = IntegerFrExp(0.0, &shift); in TEST() [all …]
|
D | quantization_util.cc | 65 int64_t q_fixed = IntegerFrExp(double_multiplier, shift); in QuantizeMultiplier() 112 int64_t IntegerFrExp(double input, int* shift) { in IntegerFrExp() function 227 const int64_t a_fraction = IntegerFrExp(a, &a_shift); in IntegerDoubleMultiply() 229 const int64_t b_fraction = IntegerFrExp(b, &b_shift); in IntegerDoubleMultiply() 242 const int64_t a_fraction = IntegerFrExp(a, &a_shift); in IntegerDoubleCompare() 244 const int64_t b_fraction = IntegerFrExp(b, &b_shift); in IntegerDoubleCompare() 284 int64_t fraction = IntegerFrExp(input_beta, &shift); in PreprocessSoftmaxScaling()
|
D | quantization_util.h | 215 int64_t IntegerFrExp(double input, int* shift);
|