/frameworks/ml/nn/common/operations/ |
D | InstanceNormalization.cpp | 49 T epsilon, T* outputData, const Shape& outputShape) { in instanceNormNhwc() argument 76 sigma = std::sqrt(static_cast<float>(sigma / static_cast<T>(height * width)) + epsilon); in instanceNormNhwc() 91 inline bool instanceNorm(const T* inputData, const Shape& inputShape, T gamma, T beta, T epsilon, in instanceNorm() argument 97 NN_RET_CHECK(instanceNormNhwc(input.getNhwcBuffer(), input.getNhwcShape(), gamma, beta, epsilon, in instanceNorm()
|
/frameworks/native/libs/math/tests/ |
D | mat_test.cpp | 420 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 421 TEST_MATRIX_INVERSE(m5, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 453 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 454 TEST_MATRIX_INVERSE(m5, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 477 TEST_MATRIX_INVERSE(m3, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 478 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST() 543 static constexpr T value_eps = T(100) * std::numeric_limits<T>::epsilon(); in verifyOrthonormal() 635 TypeParam(1000) * std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST() 663 TypeParam(1000) * std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
|
D | quat_test.cpp | 275 static constexpr double value_eps = double(1000) * std::numeric_limits<double>::epsilon(); in TEST_F()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/adb/ |
D | AdbDebuggingManagerTest.java | 439 final long epsilon = 5000; in testKeystoreExpirationTimes() local 454 > epsilon) { in testKeystoreExpirationTimes() 465 if (Math.abs(delay - expectedValue) > epsilon) { in testKeystoreExpirationTimes() 477 if (Math.abs(expirationTime - newExpirationTime) > epsilon) { in testKeystoreExpirationTimes() 482 if (Math.abs(delay - newExpirationTime) > epsilon) { in testKeystoreExpirationTimes() 607 final long epsilon = 5000; in testUntrackedUserKeysAddedToKeystore() local 630 if (Math.abs(connectionTime - connectionTime) > epsilon) { in testUntrackedUserKeysAddedToKeystore()
|
/frameworks/ml/nn/common/random/ |
D | random_distributions.h | 620 const float epsilon = 1.0e-7f; in BoxMullerFloat() local 622 if (u1 < epsilon) { in BoxMullerFloat() 623 u1 = epsilon; in BoxMullerFloat() 645 const double epsilon = 1.0e-7; in BoxMullerDouble() local 647 if (u1 < epsilon) { in BoxMullerDouble() 648 u1 = epsilon; in BoxMullerDouble()
|
/frameworks/native/libs/gui/tests/ |
D | BLASTBufferQueue_test.cpp | 168 const auto epsilon = 3; in checkScreenCapture() local 189 EXPECT_GE(epsilon, abs(r - *(pixel))); in checkScreenCapture() 190 EXPECT_GE(epsilon, abs(g - *(pixel + 1))); in checkScreenCapture() 191 EXPECT_GE(epsilon, abs(b - *(pixel + 2))); in checkScreenCapture() 193 EXPECT_GE(epsilon, abs(r - *(pixel))); in checkScreenCapture() 194 EXPECT_GE(epsilon, abs(g - *(pixel + 1))); in checkScreenCapture() 195 EXPECT_GE(epsilon, abs(b - *(pixel + 2))); in checkScreenCapture()
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | numeric.h | 90 const T& tol = std::numeric_limits<T>::epsilon()) { 96 const T& tol = std::numeric_limits<T>::epsilon()) {
|
/frameworks/base/cmds/statsd/src/ |
D | FieldValue.cpp | 192 return fabs(float_value) <= std::numeric_limits<float>::epsilon(); in isZero() 194 return fabs(double_value) <= std::numeric_limits<double>::epsilon(); in isZero()
|
/frameworks/native/libs/binder/tests/ |
D | binderTextOutputTest.cpp | 167 TypeParam eps = std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | shared.rsh | 77 /* Absolute epsilon used for floats. Value is similar to float.h. */
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutTest.java | 606 final float epsilon = 1.0f; in testGetCursorPath() local 611 assertTrue(bounds.top >= layout.getLineTop(i) - epsilon); in testGetCursorPath() 612 assertTrue(bounds.bottom <= layout.getLineBottom(i) + epsilon); in testGetCursorPath()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | shared.rsh | 96 /* Absolute epsilon used for floats. Value is similar to float.h. */
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | shared.rsh | 98 /* Absolute epsilon used for floats. Value is similar to float.h. */
|
/frameworks/native/libs/math/include/math/ |
D | half.h | 197 …inline static constexpr type epsilon() noexcept { return android::half(android::half::binary, 0x14…
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerRenderTypeTransaction_test.cpp | 82 const float epsilon = 1.0f / 16.0f; in TEST_P() local 83 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P() 89 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P()
|
/frameworks/ml/nn/runtime/test/ |
D | TestValidateOperations.cpp | 3298 ANeuralNetworksOperandType epsilon = floatScalar; in instanceNormalizationOpTest() local 3303 {input, gamma, beta, epsilon, isNCHW}, {output}); in instanceNormalizationOpTest()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 58 double epsilon = 0.001; variable 1448 12.5) < epsilon); in TEST()
|
/frameworks/ml/nn/tools/api/ |
D | types.spec | 4357 * sqrt(var[b, c] + epsilon) + beta 4388 * * 3: A scalar, specifying epsilon, the small value added to variance to
|