Searched refs:IntegerDoubleCompare (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util_test.cc | 317 TEST(QuantizationUtilTest, IntegerDoubleCompare) { in TEST() argument 318 EXPECT_EQ(-1, IntegerDoubleCompare(0.0, 1.0)); in TEST() 319 EXPECT_EQ(1, IntegerDoubleCompare(1.0, 0.0)); in TEST() 320 EXPECT_EQ(0, IntegerDoubleCompare(1.0, 1.0)); in TEST() 321 EXPECT_EQ(0, IntegerDoubleCompare(0.0, 0.0)); in TEST() 322 EXPECT_EQ(-1, IntegerDoubleCompare(-10.0, 10.0)); in TEST() 323 EXPECT_EQ(1, IntegerDoubleCompare(123.45, 10.0)); in TEST() 324 EXPECT_EQ(1, IntegerDoubleCompare(NAN, INFINITY)); in TEST() 325 EXPECT_EQ(1, IntegerDoubleCompare(INFINITY, NAN)); in TEST()
|
D | quantization_util.cc | 225 int IntegerDoubleCompare(double a, double b) { in IntegerDoubleCompare() function 273 if (IntegerDoubleCompare(input_beta_real_multiplier, (1ll << 31) - 1.0) > 0) { in PreprocessSoftmaxScaling()
|
D | quantization_util.h | 234 int IntegerDoubleCompare(double a, double b);
|