Home
last modified time | relevance | path

Searched refs:kTolerance (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/core/example/
Dfeature_util_test.cc26 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/
Dwpd_node_unittest.cc20 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()
Dmoving_moments_unittest.cc19 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()
Dtransient_detector_unittest.cc71 const float kTolerance = 0.02f; in TEST() local
86 EXPECT_NEAR(file_value, detector_value, kTolerance) in TEST()
Dwpd_tree_unittest.cc121 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/
Dsoftmax_test.cc21 const float kTolerance = 2 * (1. / 256); variable
67 kTolerance))); in TEST()
88 kTolerance))); in TEST()
105 kTolerance))); in TEST()
125 kTolerance))); in TEST()
Dactivations_test.cc225 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/
Dtree_helper.h48 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/
Dsampling_kernels_test.cc31 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/
DGeometryTest.cpp456 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 …]
DWangsFormulaTest.cpp477 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()
DGrVxTest.cpp35 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/
Dfpdf_view_embeddertest.cpp148 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/
Dbuffer_comparator.cc37 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/
DTessellateBench.cpp158 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/
DSkICC.cpp204 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/
DSkICC.cpp204 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local
205 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
/external/webrtc/audio/
Daudio_send_stream_unittest.cc53 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/
DSkottieSlide.cpp43 static constexpr float kTolerance = 0.075f; in seek() local
46 if (std::abs(player_pos - t) > kTolerance) { in seek()
/external/skia/src/gpu/geometry/
DGrQuadUtils.cpp22 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/
Dhard_swish_test.cc75 const float kTolerance = in TestHardSwishQuantized() local
121 kTolerance); in TestHardSwishQuantized()
/external/tensorflow/tensorflow/lite/kernels/
Dmul_test.cc309 const float kTolerance = 1.4f; in NoActivationLargeMultiplier() local
311 ElementsAreArray(ArrayFloatNear({4, -6, 10, 2}, kTolerance))); in NoActivationLargeMultiplier()
/external/skia/src/utils/
DSkShadowTessellator.cpp278 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/
DSkShadowTessellator.cpp274 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/
DProcessorTest.cpp361 static constexpr SkScalar kTolerance = 0.01f; in fuzzy_color_equals() local
363 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { in fuzzy_color_equals()

12