diff options
Diffstat (limited to 'tests/validation/NEON/InstanceNormalizationLayer.cpp')
-rw-r--r-- | tests/validation/NEON/InstanceNormalizationLayer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/validation/NEON/InstanceNormalizationLayer.cpp b/tests/validation/NEON/InstanceNormalizationLayer.cpp index d2a80f24f7..593ef0ad99 100644 --- a/tests/validation/NEON/InstanceNormalizationLayer.cpp +++ b/tests/validation/NEON/InstanceNormalizationLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -45,7 +45,11 @@ namespace /** Tolerance for float operations */ AbsoluteTolerance<float> tolerance_f32(0.0015f); #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC -AbsoluteTolerance<float> tolerance_f16(0.5f); +// This precision is chosen based on the precision float16_t can provide +// for the decimal numbers between 16 and 32 and decided based on multiple +// times of execution of tests. Although, with randomly generated numbers +// there is no gaurantee that this tolerance will be always large enough. +AbsoluteTolerance<half> tolerance_f16(static_cast<half>(0.015625f)); #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC } // namespace @@ -119,7 +123,7 @@ TEST_SUITE_END() // FP16 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC TEST_SUITE_END() // InstanceNormalizationLayer -TEST_SUITE_END() // NEON +TEST_SUITE_END() // Neon } // namespace validation } // namespace test } // namespace arm_compute |