aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/kernels/CLPoolingLayerKernel.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2018-05-14 14:43:33 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:52:35 +0000
commit18557bb5bb8dd645c1987af9cae650bea8a3a06b (patch)
treed592fce776afa581e1705290dad53c5af4ffc58b /src/core/CL/kernels/CLPoolingLayerKernel.cpp
parent7b94c3e3bb88a9ad69178af0396f908b5833e2ea (diff)
downloadComputeLibrary-18557bb5bb8dd645c1987af9cae650bea8a3a06b.tar.gz
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 <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/core/CL/kernels/CLPoolingLayerKernel.cpp')
-rw-r--r--src/core/CL/kernels/CLPoolingLayerKernel.cpp3
1 files changed, 1 insertions, 2 deletions
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<Status, Window, CLPoolingConfig> 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()));