From 10a73f5c0cc15ffba532bc923c6471f67af0959a Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Tue, 17 Nov 2020 12:30:38 +0000 Subject: COMPMID-3971: Nightly failure - CL LaplacianPyramid mismatches Change-Id: I8b7dee38d30a7aeb1770cf1cf592c2b5e3d3f93d Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4441 Comments-Addressed: Arm Jenkins Reviewed-by: Pablo Marquez Tello Tested-by: Arm Jenkins --- tests/validation/CL/LaplacianPyramid.cpp | 10 +++++++--- 1 file 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 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 -- cgit v1.2.1