aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON
diff options
context:
space:
mode:
authorsteniu01 <steven.niu@arm.com>2017-08-25 17:18:01 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit3e05e4e85912e745b8555102e1bcef13478d2ceb (patch)
treed4ac2e56bcbcbb2ca73b990deeeb26aa2fa1f73d /tests/validation/NEON
parent09e4f98e31a9bb77bebeccd59c70f0715ab2c292 (diff)
downloadComputeLibrary-3e05e4e85912e745b8555102e1bcef13478d2ceb.tar.gz
COMPMID-516 Change the CL CNN validation functions to use relative
tolerance error Change-Id: Iec6347af26ea2a83c911f5fe10e6048e8a2a47ba Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85381 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/validation/NEON')
-rw-r--r--tests/validation/NEON/L2Normalize.cpp2
-rw-r--r--tests/validation/NEON/MeanStdDev.cpp4
-rw-r--r--tests/validation/NEON/ReductionOperation.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/validation/NEON/L2Normalize.cpp b/tests/validation/NEON/L2Normalize.cpp
index 4f94c15767..ceffa6d510 100644
--- a/tests/validation/NEON/L2Normalize.cpp
+++ b/tests/validation/NEON/L2Normalize.cpp
@@ -43,7 +43,7 @@ namespace validation
namespace
{
/** Tolerance for float operations */
-constexpr RelativeTolerance tolerance_f32(0.00001f);
+RelativeTolerance<float> tolerance_f32(0.00001f);
} // namespace
TEST_SUITE(NEON)
diff --git a/tests/validation/NEON/MeanStdDev.cpp b/tests/validation/NEON/MeanStdDev.cpp
index 42d887960e..44f7178f5e 100644
--- a/tests/validation/NEON/MeanStdDev.cpp
+++ b/tests/validation/NEON/MeanStdDev.cpp
@@ -37,8 +37,8 @@ namespace validation
{
namespace
{
-constexpr RelativeTolerance tolerance_rel_high_error(0.05f);
-constexpr RelativeTolerance tolerance_rel_low_error(0.0005f);
+RelativeTolerance<float> tolerance_rel_high_error(0.05f);
+RelativeTolerance<float> tolerance_rel_low_error(0.0005f);
} // namespace
TEST_SUITE(NEON)
diff --git a/tests/validation/NEON/ReductionOperation.cpp b/tests/validation/NEON/ReductionOperation.cpp
index 4ea71a6336..cf603c67ff 100644
--- a/tests/validation/NEON/ReductionOperation.cpp
+++ b/tests/validation/NEON/ReductionOperation.cpp
@@ -44,7 +44,7 @@ namespace validation
namespace
{
/** Tolerance for float operations */
-constexpr RelativeTolerance tolerance_f32(0.00001f);
+RelativeTolerance<float> tolerance_f32(0.00001f);
} // namespace
TEST_SUITE(NEON)