aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/CL/ReductionOperation.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2018-10-18 16:17:16 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:45 +0000
commit7c75ba0316510ab46bfb56e7b575e72ec1668c46 (patch)
treef123330042e5b100f7a9595f50779c899c68888f /tests/validation/CL/ReductionOperation.cpp
parent061dd36716a17c1065de6143f61e41d03896d541 (diff)
downloadComputeLibrary-7c75ba0316510ab46bfb56e7b575e72ec1668c46.tar.gz
COMPMID-1661 Nightly - CLReductionOperation FP16 failures
Change-Id: If496709958bf29589601eac62a268819736a4fd2 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/154173 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: bsgcomp <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/CL/ReductionOperation.cpp')
-rw-r--r--tests/validation/CL/ReductionOperation.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/validation/CL/ReductionOperation.cpp b/tests/validation/CL/ReductionOperation.cpp
index 794db1a3e5..35cb0c51e1 100644
--- a/tests/validation/CL/ReductionOperation.cpp
+++ b/tests/validation/CL/ReductionOperation.cpp
@@ -44,8 +44,10 @@ namespace validation
namespace
{
/** Tolerance for float operations */
-RelativeTolerance<float> tolerance_f32(0.00001f);
-AbsoluteTolerance<float> tolerance_f16(0.1f);
+AbsoluteTolerance<float> tolerance_f32(0.01f);
+RelativeTolerance<float> rel_tolerance_f32(0.00001f);
+AbsoluteTolerance<float> tolerance_f16(0.5f);
+RelativeTolerance<float> rel_tolerance_f16(0.2f);
} // namespace
TEST_SUITE(CL)
@@ -96,7 +98,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLReductionOperationFixture<half>, framework::D
combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType", DataType::F16)), framework::dataset::make("Axis", { 0, 1, 2, 3 })), datasets::ReductionOperations()))
{
// Validate output
- validate(CLAccessor(_target), _reference, tolerance_f16);
+ validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0, tolerance_f16);
}
TEST_SUITE_END() // F16
TEST_SUITE(FP32)
@@ -110,7 +112,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLReductionOperationFixture<float>, framework::
combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("Axis", { 0, 1, 2, 3 })), datasets::ReductionOperations()))
{
// Validate output
- validate(CLAccessor(_target), _reference, tolerance_f32);
+ validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0, tolerance_f32);
}
TEST_SUITE_END() // F32
TEST_SUITE_END() // Float