diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2020-11-26 16:33:57 +0000 |
---|---|---|
committer | Manuel Bottini <manuel.bottini@arm.com> | 2020-11-30 16:40:07 +0000 |
commit | 327800401c4185d98fcc01b9c9efbc038a4228ed (patch) | |
tree | c696fb0f8c81434224a4968e3656df3c924c9558 /tests | |
parent | 282f324f4d6aeff172d447be6dfdf54c3d38b235 (diff) | |
download | ComputeLibrary-327800401c4185d98fcc01b9c9efbc038a4228ed.tar.gz |
COMPMID-3891: Fix corner case 1 value mismatch in NEON Elementwise Division
Change-Id: I527921910bf1f0a68b69672d204d719fd8b65346
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4582
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation/NEON/ElementwiseDivision.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/validation/NEON/ElementwiseDivision.cpp b/tests/validation/NEON/ElementwiseDivision.cpp index db34af1c05..120bca032b 100644 --- a/tests/validation/NEON/ElementwiseDivision.cpp +++ b/tests/validation/NEON/ElementwiseDivision.cpp @@ -43,6 +43,8 @@ namespace validation namespace { RelativeTolerance<float> tolerance_fp32(0.000001f); +AbsoluteTolerance<int> tolerance_zero_s32(1); // Tolerance for S32 division + /** Input data sets **/ const auto ElementwiseDivisionS32Dataset = combine(combine(framework::dataset::make("DataType", DataType::S32), framework::dataset::make("DataType", DataType::S32)), @@ -126,7 +128,7 @@ TEST_SUITE(S32) FIXTURE_DATA_TEST_CASE(RunSmall, NEElementwiseDivisionFixture<int32_t>, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), ElementwiseDivisionS32Dataset)) { // Validate output - validate(Accessor(_target), _reference); + validate(Accessor(_target), _reference, tolerance_zero_s32); } TEST_SUITE_END() // S32 TEST_SUITE_END() // Integer |