COMPMID-3971: Nightly failure - CL LaplacianPyramid mismatches
authorManuel Bottini <manuel.bottini@arm.com>
Tue, 17 Nov 2020 12:30:38 +0000 (12:30 +0000)
committerManuel Bottini <manuel.bottini@arm.com>
Wed, 18 Nov 2020 12:01:09 +0000 (12:01 +0000)
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>
tests/validation/CL/LaplacianPyramid.cpp

index 3096d32976f79de1ecdb4c609f88aad73448d66b..78f3f2373bafb3cee158ea4fea6998b3db3bbde0 100644 (file)
@@ -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