From 3c520c5a6ca9352560828fdf389d31e38b85afeb Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Tue, 1 May 2018 11:47:24 +0100 Subject: COMPMID-1089 CLPoolingLayer fix padding and add output shape computation to ShapeCalculator Change-Id: Ide83424e9fe6b8102ed9e3c355c099c3912e7e61 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129635 Tested-by: Jenkins Reviewed-by: Michele DiGiorgio Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier --- src/core/CL/kernels/CLPoolingLayerKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/CL/kernels/CLPoolingLayerKernel.cpp b/src/core/CL/kernels/CLPoolingLayerKernel.cpp index 7907d01daa..ad4712d746 100644 --- a/src/core/CL/kernels/CLPoolingLayerKernel.cpp +++ b/src/core/CL/kernels/CLPoolingLayerKernel.cpp @@ -143,7 +143,7 @@ std::tuple validate_and_configure_window(ITenso win = calculate_max_window(*output, Steps(num_elems_processed_per_iteration)); AccessWindowRectangle input_access(input, -pool_pad_left, -pool_pad_top, num_elems_read_per_iteration, pool_size_y, - pool_stride_x * num_elems_processed_per_iteration, pool_stride_y); + pool_stride_x, pool_stride_y); AccessWindowHorizontal output_access(output, 0, num_elems_processed_per_iteration); window_changed = update_window_and_padding(win, input_access, output_access); output_access.set_valid_region(win, ValidRegion(Coordinates(), output->tensor_shape())); @@ -155,7 +155,7 @@ std::tuple validate_and_configure_window(ITenso win = calculate_max_window(*output, Steps(num_elems_processed_per_iteration)); AccessWindowRectangle input_access(input, -1, -1, num_elems_processed_per_iteration, pool_size_y, - pool_stride_x * num_elems_processed_per_iteration, pool_stride_y); + pool_stride_x, pool_stride_y); AccessWindowHorizontal output_access(output, 0, num_elems_processed_per_iteration); window_changed = update_window_and_padding(win, input_access, output_access); output_access.set_valid_region(win, ValidRegion(Coordinates(), output->tensor_shape())); -- cgit v1.2.1