/external/tensorflow/tensorflow/core/example/ |
D | feature_util_test.cc | 26 const float kTolerance = 1e-5; variable 114 EXPECT_NEAR(3.14, values.Get(0), kTolerance); in TEST() 126 EXPECT_NEAR(3.14, tag.Get(0), kTolerance); in TEST() 135 EXPECT_NEAR(3.14, feature.float_list().value(0), kTolerance); in TEST() 147 kTolerance); in TEST() 161 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 175 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 242 EXPECT_NEAR(1.1, tag_ro.Get(0), kTolerance); in TEST() 243 EXPECT_NEAR(2.2, tag_ro.Get(1), kTolerance); in TEST() 244 EXPECT_NEAR(3.3, tag_ro.Get(2), kTolerance); in TEST() [all …]
|
/external/webrtc/modules/audio_processing/transient/ |
D | wpd_node_unittest.cc | 20 static const float kTolerance = 0.0001f; variable 49 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); in TEST() 50 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); in TEST() 51 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); in TEST() 52 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); in TEST() 53 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); in TEST()
|
D | moving_moments_unittest.cc | 19 static const float kTolerance = 0.0001f; variable 56 EXPECT_NEAR(expected_mean[i], output_mean_[i], kTolerance); in CalculateMomentsAndVerify() 57 EXPECT_NEAR(expected_mean_squares[i], output_mean_squares_[i], kTolerance); in CalculateMomentsAndVerify()
|
D | transient_detector_unittest.cc | 71 const float kTolerance = 0.02f; in TEST() local 86 EXPECT_NEAR(file_value, detector_value, kTolerance) in TEST()
|
D | wpd_tree_unittest.cc | 121 const float kTolerance = 0.03f; in TEST() local 154 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance) in TEST()
|
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/ |
D | softmax_test.cc | 21 const float kTolerance = 2 * (1. / 256); variable 67 kTolerance))); in TEST() 88 kTolerance))); in TEST() 105 kTolerance))); in TEST() 125 kTolerance))); in TEST()
|
D | activations_test.cc | 225 const float kTolerance = std::max(0.03f, quant_recommended_tolerance); in TestQuantizedHardSwish() local 227 float_ref_output_values, kTolerance))); in TestQuantizedHardSwish()
|
/external/tensorflow/tensorflow/core/kernels/boosted_trees/ |
D | tree_helper.h | 48 const float kTolerance = 1e-15; in GainsAreEqual() local 49 return std::abs(g1 - g2) < kTolerance; in GainsAreEqual() 53 const float kTolerance = 1e-15; in GainIsLarger() local 54 return g1 - g2 >= kTolerance; in GainIsLarger()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | sampling_kernels_test.cc | 31 constexpr float kTolerance = 1e-3; in TestKernelValues() local 32 EXPECT_NEAR(kernel(x[i]), expected[i], kTolerance); in TestKernelValues() 33 EXPECT_NEAR(kernel(-x[i]), expected[i], kTolerance); in TestKernelValues()
|
/external/skia/tests/ |
D | GeometryTest.cpp | 456 constexpr float kTolerance = 1e-3f; in test_chop_quad_at_midtangent() local 465 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(leftRotation, fullRotation/2, kTolerance)); in test_chop_quad_at_midtangent() 466 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rightRotation, fullRotation/2, kTolerance)); in test_chop_quad_at_midtangent() 472 constexpr float kTolerance = 1e-3f; in test_chop_cubic_at_midtangent() local 488 (SkScalarNearlyEqual(fullRotation, 2*SK_ScalarPI, kTolerance) || in test_chop_cubic_at_midtangent() 489 SkScalarNearlyEqual(fullRotation, 0, kTolerance))) { in test_chop_cubic_at_midtangent() 494 REPORTER_ASSERT(reporter, std::abs(leftRotation) - kTolerance <= SK_ScalarPI); in test_chop_cubic_at_midtangent() 495 REPORTER_ASSERT(reporter, std::abs(rightRotation) - kTolerance <= SK_ScalarPI); in test_chop_cubic_at_midtangent() 501 SkScalarNearlyEqual(fullRotation, SK_ScalarPI, kTolerance))) { in test_chop_cubic_at_midtangent() 506 kTolerance)); in test_chop_cubic_at_midtangent() [all …]
|
D | WangsFormulaTest.cpp | 477 constexpr static float kTolerance = 1.f / kPrecision; in DEF_TEST() local 484 const float nsegs = GrWangsFormula::conic(kTolerance, pts, w); in DEF_TEST() 496 constexpr static float kTolerance = 1.f / kPrecision; in DEF_TEST() local 501 float expected = GrWangsFormula::conic(kTolerance, ptsXformed, w); in DEF_TEST() 502 float actual = GrWangsFormula::conic(kTolerance, pts, w, GrVectorXform(m)); in DEF_TEST()
|
D | GrVxTest.cpp | 35 constexpr static float kTolerance = 1.f / (1 << 20); in DEF_TEST() local 37 grvx::cross({a,b}, {c,d}), SkPoint::CrossProduct({a,b}, {c,d}), kTolerance)); in DEF_TEST() 39 grvx::dot({a,b}, {c,d}), SkPoint::DotProduct({a,b}, {c,d}), kTolerance)); in DEF_TEST()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_view_embeddertest.cpp | 148 const double kTolerance = 0.0001; in TEST_F() local 167 EXPECT_NEAR(9.5625, page_x, kTolerance); in TEST_F() 168 EXPECT_NEAR(775.5, page_y, kTolerance); in TEST_F() 174 EXPECT_NEAR(12.75, page_x, kTolerance); in TEST_F() 175 EXPECT_NEAR(12.375, page_y, kTolerance); in TEST_F() 181 EXPECT_NEAR(602.4374, page_x, kTolerance); in TEST_F() 182 EXPECT_NEAR(16.5, page_y, kTolerance); in TEST_F() 188 EXPECT_NEAR(599.25, page_x, kTolerance); in TEST_F() 189 EXPECT_NEAR(779.625, page_y, kTolerance); in TEST_F() 197 EXPECT_NEAR(9.5625, page_x, kTolerance); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | buffer_comparator.cc | 37 static constexpr double kTolerance = 0.1f; variable 626 *comparison_kernel, lhs_typed, rhs_typed, static_cast<float>(kTolerance), in DeviceCompare() 673 kTolerance)) { in HostCompare()
|
/external/skia/bench/ |
D | TessellateBench.cpp | 158 constexpr float kTolerance = 4; in benchmark_wangs_formula_conic() local 163 sum += GrWangsFormula::conic(kTolerance, pts, *w, xform); in benchmark_wangs_formula_conic() 174 constexpr float kTolerance = 4; in benchmark_wangs_formula_conic_log2() local 179 sum += GrWangsFormula::conic_log2(kTolerance, pts, *w, xform); in benchmark_wangs_formula_conic_log2()
|
/external/skia/src/core/ |
D | SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 205 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/skqp/src/core/ |
D | SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 205 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/webrtc/audio/ |
D | audio_send_stream_unittest.cc | 53 static const float kTolerance = 0.0001f; variable 500 EXPECT_NEAR(0.0f, stats.total_input_energy, kTolerance); in TEST() 502 kTolerance); // 100 ms = 0.1 s in TEST() 515 EXPECT_NEAR(0.1f, stats.total_input_energy, kTolerance); // 0.1 s of max in TEST() 517 kTolerance); // 200 ms = 0.2 s in TEST()
|
/external/skia/tools/viewer/ |
D | SkottieSlide.cpp | 43 static constexpr float kTolerance = 0.075f; in seek() local 46 if (std::abs(player_pos - t) > kTolerance) { in seek()
|
/external/skia/src/gpu/geometry/ |
D | GrQuadUtils.cpp | 22 static constexpr float kTolerance = 1e-9f; variable 744 correct_bad_coords(abs(denom) < kTolerance, &px, &py, nullptr); in computeDegenerateQuad() 824 if (dists1[i] < -kDistTolerance && abs(eDenom[0]) > kTolerance) { in computeDegenerateQuad() 830 } else if (dists2[i] < -kDistTolerance && abs(eDenom[1]) > kTolerance) { in computeDegenerateQuad() 1062 correct_bad_coords(abs(denom) < kTolerance, &fX, &fY, &fW); in moveTo() 1080 correct_bad_coords(abs(denom) < kTolerance, &fU, &fV, &fR); in moveTo() 1082 correct_bad_coords(abs(denom) < kTolerance, &fU, &fV, nullptr); in moveTo()
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | hard_swish_test.cc | 75 const float kTolerance = in TestHardSwishQuantized() local 121 kTolerance); in TestHardSwishQuantized()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | mul_test.cc | 309 const float kTolerance = 1.4f; in NoActivationLargeMultiplier() local 311 ElementsAreArray(ArrayFloatNear({4, -6, 10, 2}, kTolerance))); in NoActivationLargeMultiplier()
|
/external/skia/src/utils/ |
D | SkShadowTessellator.cpp | 278 static constexpr auto kTolerance = 1.0e-2f; in computeConvexShadow() local 279 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow() 281 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; in computeConvexShadow()
|
/external/skqp/src/utils/ |
D | SkShadowTessellator.cpp | 274 static constexpr auto kTolerance = 1.0e-2f; in computeConvexShadow() local 275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow() 277 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; in computeConvexShadow()
|
/external/skqp/tests/ |
D | ProcessorTest.cpp | 361 static constexpr SkScalar kTolerance = 0.01f; in fuzzy_color_equals() local 363 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { in fuzzy_color_equals()
|