From 4e1e7dcd581adecd5ad9c0f9503fc3c43f8222ef Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 5 Feb 2018 19:04:25 +0000 Subject: COMPMID-892: OCLGrind failures on both validation and benchmark -Adds quantization info to the ActivationLayer benchmark fixture -Replaces clamp with convert_sat in depthwise conv kernel -Fixes ROIPooling execution slice Change-Id: Ie9bbe08abcfb8278456964e476b0948247c7ecba Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/118957 Tested-by: Jenkins Reviewed-by: Michalis Spyrou --- src/core/CL/cl_kernels/depthwise_convolution_quantized.cl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/CL/cl_kernels') diff --git a/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl b/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl index 8a757fc2bd..450342ddfc 100644 --- a/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl +++ b/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl @@ -171,9 +171,8 @@ inline uchar8 convolution3x3( pixels = ASYMM_MULT_BY_QUANT_MULTIPLIER_LESS_THAN_ONE(pixels, output_multiplier, output_shift, 8); pixels = pixels + output_offset; - pixels = clamp(pixels, 0, 255); - return CONVERT(pixels, uchar8); + return CONVERT_SAT(pixels, uchar8); } /** This function computes the horizontal integral of the image. -- cgit v1.2.1