From 384a43e9a37b1616d83181de8a46c9934bfdc82e Mon Sep 17 00:00:00 2001 From: John Richardson Date: Thu, 14 Dec 2017 15:41:13 +0000 Subject: COMPMID-579: Port Derivative to new validation Change-Id: Iecbfa3ebab890c778fb475403466d6fb168e9968 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113357 Reviewed-by: Georgios Pinitas Tested-by: Jenkins --- src/core/CL/kernels/CLDerivativeKernel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/CL/kernels') diff --git a/src/core/CL/kernels/CLDerivativeKernel.cpp b/src/core/CL/kernels/CLDerivativeKernel.cpp index 36ba06d528..5bfe75140b 100644 --- a/src/core/CL/kernels/CLDerivativeKernel.cpp +++ b/src/core/CL/kernels/CLDerivativeKernel.cpp @@ -96,11 +96,13 @@ void CLDerivativeKernel::configure(const ICLTensor *input, ICLTensor *output_x, AccessWindowHorizontal output_y_access(output_y == nullptr ? nullptr : output_y->info(), 0, num_elems_processed_per_iteration); if(_run_derivative_x && _run_derivative_y) { - input_access = AccessWindowRectangle(input->info(), -border_size().left, -border_size().top, num_elems_processed_per_iteration, num_read_rows_per_iteration); + // TODO(COMPMID-415) Fix x-access input bug in CL kernel instead of '+2' + input_access = AccessWindowRectangle(input->info(), -border_size().left, -border_size().top, num_elems_processed_per_iteration + 2, num_read_rows_per_iteration); } else if(_run_derivative_x) { - input_access = AccessWindowHorizontal(input->info(), -border_size().left, num_elems_processed_per_iteration); + // TODO(COMPMID-415) Fix x-access input bug in CL kernel instead of '+2' + input_access = AccessWindowHorizontal(input->info(), -border_size().left, num_elems_processed_per_iteration + 2); } else if(_run_derivative_y) { -- cgit v1.2.1