aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/CL/LocallyConnected.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-05-16 11:58:33 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:52:35 +0000
commit4d0a8d6a8f7cc2b5964cc69990e9f3a3ea7e036d (patch)
treecae35dbeb2cfad7c2ac6d4337e4392c4abc29658 /tests/validation/CL/LocallyConnected.cpp
parenta866f8574c07965e80cb4389672d975914b3aee8 (diff)
downloadComputeLibrary-4d0a8d6a8f7cc2b5964cc69990e9f3a3ea7e036d.tar.gz
COMMIT-1171: (OCLGrind) CLLocallyConnected FP32 mismatches
Adds small relative and absolute error in locally connected layer. Change-Id: I57fc9f9ddca53f0186bf69c43e4aa58380caef1a Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131444 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/CL/LocallyConnected.cpp')
-rw-r--r--tests/validation/CL/LocallyConnected.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/validation/CL/LocallyConnected.cpp b/tests/validation/CL/LocallyConnected.cpp
index 6387fcc64a..d8f236cb12 100644
--- a/tests/validation/CL/LocallyConnected.cpp
+++ b/tests/validation/CL/LocallyConnected.cpp
@@ -42,6 +42,8 @@ namespace validation
{
namespace
{
+constexpr AbsoluteTolerance<float> atolerance_f32(0.00001f); /**< Absolute Tolerance value for comparing reference's output against implementation's output for DataType::F32 */
+RelativeTolerance<float> rtolerance_f32(0.05f); /**< Tolerance value for comparing reference's output against implementation's output for DataType::F32 */
} // namespace
TEST_SUITE(CL)
@@ -141,7 +143,7 @@ FIXTURE_DATA_TEST_CASE(RunSmall, CLLocallyConnectedFixture<float>, framework::Da
DataType::F32)))
{
// Validate output
- validate(CLAccessor(_target), _reference);
+ validate(CLAccessor(_target), _reference, rtolerance_f32, 0.f, atolerance_f32);
}
FIXTURE_DATA_TEST_CASE(RunLarge, CLLocallyConnectedFixture<float>, framework::DatasetMode::NIGHTLY, combine(datasets::LargeLocallyConnectedDataset(),
@@ -149,7 +151,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLLocallyConnectedFixture<float>, framework::Da
DataType::F32)))
{
// Validate output
- validate(CLAccessor(_target), _reference);
+ validate(CLAccessor(_target), _reference, rtolerance_f32, 0.f, atolerance_f32);
}
TEST_SUITE_END()
TEST_SUITE_END()