From 18557bb5bb8dd645c1987af9cae650bea8a3a06b Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 14 May 2018 14:43:33 +0100 Subject: COMPMID-1152 OCLGrind: invalid read in pooling_layer_MxN_nhwc Change-Id: I6767a147e532d944d4e8dac3a235ef9af70964d7 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131056 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- src/core/CL/kernels/CLPoolingLayerKernel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/CL/kernels/CLPoolingLayerKernel.cpp') diff --git a/src/core/CL/kernels/CLPoolingLayerKernel.cpp b/src/core/CL/kernels/CLPoolingLayerKernel.cpp index ad4712d746..14478cc06f 100644 --- a/src/core/CL/kernels/CLPoolingLayerKernel.cpp +++ b/src/core/CL/kernels/CLPoolingLayerKernel.cpp @@ -154,8 +154,7 @@ std::tuple validate_and_configure_window(ITenso num_elems_processed_per_iteration = 8; 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, pool_stride_y); + AccessWindowRectangle input_access(input, 0, -pool_pad_left, num_elems_processed_per_iteration, pool_size_x); 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