diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-11-29 16:09:48 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:41:36 +0000 |
commit | 47b5603a0db2797dda66a2b5dbbc451a740a5ecd (patch) | |
tree | f8f4aee6d8a720669310d88d8b59a9897bcce3ad | |
parent | 7062382af52ee9b79576a0a962b5f5b9088b3bae (diff) | |
download | ComputeLibrary-47b5603a0db2797dda66a2b5dbbc451a740a5ecd.tar.gz |
COMPMID-712: OCLGrind CLSoftmaxLayer quantized failures
Change-Id: I480eb8ad55b632c7d75b1a89e952e77b0ebbeda5
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/111158
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com>
-rw-r--r-- | src/core/CL/cl_kernels/softmax_layer_quantized.cl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/CL/cl_kernels/softmax_layer_quantized.cl b/src/core/CL/cl_kernels/softmax_layer_quantized.cl index 19cd983cad..31f402f627 100644 --- a/src/core/CL/cl_kernels/softmax_layer_quantized.cl +++ b/src/core/CL/cl_kernels/softmax_layer_quantized.cl @@ -256,8 +256,8 @@ __kernel void softmax_layer_norm_quantized( data = asymm_mult(shifted_scale, data); data = asymm_rounding_divide_by_pow2(data, num_bits_over_unit + 31 - 8); - data = select(0, max(min(data, 255), 0), data_diff >= (int16)(DIFF_MIN)); - vstore16(convert_uchar16(data), 0, (__global uchar *)offset(&dst, 0, 0)); + data = select(0, data, data_diff >= (int16)(DIFF_MIN)); + vstore16(convert_uchar16_sat(data), 0, (__global uchar *)offset(&dst, 0, 0)); } #endif /* defined(DIFF_MIN) */ |