Searched refs:IntegerDoubleCompare (Results 1 – 4 of 4) sorted by relevance
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | quantization_util_test.cc | 365 TF_LITE_MICRO_EXPECT_EQ(-1, tflite::IntegerDoubleCompare(0.0, 1.0)); in TF_LITE_MICRO_TEST() 366 TF_LITE_MICRO_EXPECT_EQ(1, tflite::IntegerDoubleCompare(1.0, 0.0)); in TF_LITE_MICRO_TEST() 367 TF_LITE_MICRO_EXPECT_EQ(0, tflite::IntegerDoubleCompare(1.0, 1.0)); in TF_LITE_MICRO_TEST() 368 TF_LITE_MICRO_EXPECT_EQ(0, tflite::IntegerDoubleCompare(0.0, 0.0)); in TF_LITE_MICRO_TEST() 369 TF_LITE_MICRO_EXPECT_EQ(-1, tflite::IntegerDoubleCompare(-10.0, 10.0)); in TF_LITE_MICRO_TEST() 370 TF_LITE_MICRO_EXPECT_EQ(1, tflite::IntegerDoubleCompare(123.45, 10.0)); in TF_LITE_MICRO_TEST() 372 1, tflite::IntegerDoubleCompare(static_cast<double>(NAN), in TF_LITE_MICRO_TEST() 375 1, tflite::IntegerDoubleCompare(static_cast<double>(INFINITY), in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util_test.cc | 320 TEST(QuantizationUtilTest, IntegerDoubleCompare) { in TEST() argument 321 EXPECT_EQ(-1, IntegerDoubleCompare(0.0, 1.0)); in TEST() 322 EXPECT_EQ(1, IntegerDoubleCompare(1.0, 0.0)); in TEST() 323 EXPECT_EQ(0, IntegerDoubleCompare(1.0, 1.0)); in TEST() 324 EXPECT_EQ(0, IntegerDoubleCompare(0.0, 0.0)); in TEST() 325 EXPECT_EQ(-1, IntegerDoubleCompare(-10.0, 10.0)); in TEST() 326 EXPECT_EQ(1, IntegerDoubleCompare(123.45, 10.0)); in TEST() 327 EXPECT_EQ(1, IntegerDoubleCompare(NAN, INFINITY)); in TEST() 328 EXPECT_EQ(1, IntegerDoubleCompare(INFINITY, NAN)); in TEST()
|
D | quantization_util.cc | 240 int IntegerDoubleCompare(double a, double b) { in IntegerDoubleCompare() function 288 if (IntegerDoubleCompare(input_beta_real_multiplier, (1ll << 31) - 1.0) > 0) { in PreprocessSoftmaxScaling()
|
D | quantization_util.h | 234 int IntegerDoubleCompare(double a, double b);
|