diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2020-11-17 12:30:38 +0000 |
---|---|---|
committer | Manuel Bottini <manuel.bottini@arm.com> | 2020-11-18 12:01:09 +0000 |
commit | 10a73f5c0cc15ffba532bc923c6471f67af0959a (patch) | |
tree | 46903ea8784d07797173947b6144c124a06a3756 /tests/validation/CL | |
parent | cc3e53cccb21a8ae93d641b58b7e9b86a61d0fc5 (diff) | |
download | ComputeLibrary-10a73f5c0cc15ffba532bc923c6471f67af0959a.tar.gz |
COMPMID-3971: Nightly failure - CL LaplacianPyramid mismatches
Change-Id: I8b7dee38d30a7aeb1770cf1cf592c2b5e3d3f93d
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4441
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/CL')
-rw-r--r-- | tests/validation/CL/LaplacianPyramid.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/validation/CL/LaplacianPyramid.cpp b/tests/validation/CL/LaplacianPyramid.cpp index 3096d32976..78f3f2373b 100644 --- a/tests/validation/CL/LaplacianPyramid.cpp +++ b/tests/validation/CL/LaplacianPyramid.cpp @@ -43,8 +43,12 @@ namespace validation { namespace { -const auto small_laplacian_pyramid_levels = framework::dataset::make("NumLevels", 2, 3); -const auto large_laplacian_pyramid_levels = framework::dataset::make("NumLevels", 2, 5); +/* Absolute tolerance value for comparing reference's output against implementation's output for DataType::S16 + * Tolerance is needed for calculation uncertainties introduced from the layers + */ +AbsoluteTolerance<int16_t> tolerance_int16(1); +const auto small_laplacian_pyramid_levels = framework::dataset::make("NumLevels", 2, 3); +const auto large_laplacian_pyramid_levels = framework::dataset::make("NumLevels", 2, 5); const auto formats = combine(framework::dataset::make("FormatIn", Format::U8), framework::dataset::make("FormatOut", Format::S16)); @@ -68,7 +72,7 @@ inline void validate_laplacian_pyramid(const CLPyramid &target, const std::vecto border_mode == BorderMode::UNDEFINED); // Validate level - validate(CLAccessor(*level_image), reference[lev], valid_region); + validate(CLAccessor(*level_image), reference[lev], valid_region, tolerance_int16); } } } // namespace |