Home
last modified time | relevance | path

Searched refs:epsilon (Results 1 – 18 of 18) sorted by relevance

/frameworks/ml/nn/common/operations/
DInstanceNormalization.cpp49 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/
Dmat_test.cpp420 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()
Dquat_test.cpp275 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/
DAdbDebuggingManagerTest.java439 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/
Drandom_distributions.h620 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/
DBLASTBufferQueue_test.cpp168 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/
Dnumeric.h90 const T& tol = std::numeric_limits<T>::epsilon()) {
96 const T& tol = std::numeric_limits<T>::epsilon()) {
/frameworks/base/cmds/statsd/src/
DFieldValue.cpp192 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/
DbinderTextOutputTest.cpp167 TypeParam eps = std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dshared.rsh77 /* Absolute epsilon used for floats. Value is similar to float.h. */
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java606 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/
Dshared.rsh96 /* Absolute epsilon used for floats. Value is similar to float.h. */
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dshared.rsh98 /* Absolute epsilon used for floats. Value is similar to float.h. */
/frameworks/native/libs/math/include/math/
Dhalf.h197 …inline static constexpr type epsilon() noexcept { return android::half(android::half::binary, 0x14…
/frameworks/native/services/surfaceflinger/tests/
DLayerRenderTypeTransaction_test.cpp82 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/
DTestValidateOperations.cpp3298 ANeuralNetworksOperandType epsilon = floatScalar; in instanceNormalizationOpTest() local
3303 {input, gamma, beta, epsilon, isNCHW}, {output}); in instanceNormalizationOpTest()
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp58 double epsilon = 0.001; variable
1448 12.5) < epsilon); in TEST()
/frameworks/ml/nn/tools/api/
Dtypes.spec4357 * sqrt(var[b, c] + epsilon) + beta
4388 * * 3: A scalar, specifying epsilon, the small value added to variance to