From 0bebac5b0e5016fb15a7a2f485268c92ffe9d0dc Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 24 Oct 2018 17:27:02 +0100 Subject: COMPMID-1682 Nightly NEON Reduction operation mismatches Increase tolerance for fp32 and added absolute tolerance Change-Id: Iff828457b514d6301ed2c8e04b66ce86867f72b6 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/155086 Tested-by: bsgcomp Reviewed-by: Isabella Gottardi --- tests/validation/NEON/ReductionOperation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/validation/NEON/ReductionOperation.cpp') diff --git a/tests/validation/NEON/ReductionOperation.cpp b/tests/validation/NEON/ReductionOperation.cpp index 2a381bfa58..8a9d21b091 100644 --- a/tests/validation/NEON/ReductionOperation.cpp +++ b/tests/validation/NEON/ReductionOperation.cpp @@ -44,7 +44,8 @@ namespace validation namespace { /** Tolerance for float operations */ -RelativeTolerance tolerance_f32(0.00001f); +AbsoluteTolerance tolerance_f32(0.0001f); +RelativeTolerance rel_tolerance_f32(0.00001f); /** Tolerance for quantized operations */ RelativeTolerance tolerance_qasymm8(1); } // namespace @@ -96,7 +97,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, NEReductionOperationFixture, framework:: combine(combine(combine(datasets::Large4DShapes(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("Axis", { 0, 1, 2, 3 })), datasets::ReductionOperations())) { // Validate output - validate(Accessor(_target), _reference, tolerance_f32); + validate(Accessor(_target), _reference, rel_tolerance_f32, 0, tolerance_f32); } TEST_SUITE_END() // FP32 -- cgit v1.2.1