diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-11-10 14:25:59 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 2f18579e61d8da35cd1222ee3bfc7a8259cd3432 (patch) | |
tree | dac7441ff7a7b04ac051a3bd27777e8b15d6a4af /src/core/CL/cl_kernels | |
parent | f450caa7d2ac9a2a90407fb81203228dc82ef4a1 (diff) | |
download | ComputeLibrary-2f18579e61d8da35cd1222ee3bfc7a8259cd3432.tar.gz |
COMPMID-661: Fix rounding in average pooling for uint8.
Rounds output result of average pooling uint8 to match AndroidNN
reference.
Change-Id: If739086bbc5d2f0776cadae5b2312744bd7ce588
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95349
Reviewed-by: Robert Hughes <robert.hughes@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels')
-rw-r--r-- | src/core/CL/cl_kernels/pooling_layer_quantized.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/cl_kernels/pooling_layer_quantized.cl b/src/core/CL/cl_kernels/pooling_layer_quantized.cl index 17448d19de..39c2c22016 100644 --- a/src/core/CL/cl_kernels/pooling_layer_quantized.cl +++ b/src/core/CL/cl_kernels/pooling_layer_quantized.cl @@ -113,7 +113,7 @@ __kernel void pooling_layer_N_quantized( res = POOL_OP(res, sdata); #if defined(POOL_AVG) - res = DIV_OP(res, calculate_avg_scale(POOL_SIZE, MAX_WIDTH, MAX_HEIGHT, PAD_X, PAD_Y, STRIDE_X, STRIDE_Y)); + res = round(DIV_OP(res, calculate_avg_scale(POOL_SIZE, MAX_WIDTH, MAX_HEIGHT, PAD_X, PAD_Y, STRIDE_X, STRIDE_Y))); #endif /* defined(POOL_AVG) */ // Store result |