diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CL/kernels/CLMedian3x3Kernel.cpp | 2 | ||||
-rw-r--r-- | src/core/NEON/kernels/NEMedian3x3Kernel.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/CL/kernels/CLMedian3x3Kernel.cpp b/src/core/CL/kernels/CLMedian3x3Kernel.cpp index 95334c7b5f..3b9fb1fe88 100644 --- a/src/core/CL/kernels/CLMedian3x3Kernel.cpp +++ b/src/core/CL/kernels/CLMedian3x3Kernel.cpp @@ -53,7 +53,7 @@ void CLMedian3x3Kernel::configure(const ICLTensor *input, ICLTensor *output, boo constexpr unsigned int num_elems_written_per_iteration = 8; constexpr unsigned int num_rows_read_per_iteration = 3; - Window win = calculate_max_window_horizontal(*input->info(), Steps(num_elems_processed_per_iteration), border_undefined, border_size()); + Window win = calculate_max_window(*input->info(), Steps(num_elems_processed_per_iteration), border_undefined, border_size()); AccessWindowRectangle input_access(input->info(), -border_size().left, -border_size().top, num_elems_read_per_iteration, num_rows_read_per_iteration); AccessWindowHorizontal output_access(output->info(), 0, num_elems_written_per_iteration); diff --git a/src/core/NEON/kernels/NEMedian3x3Kernel.cpp b/src/core/NEON/kernels/NEMedian3x3Kernel.cpp index 54ef33ec36..5bcdc7bc7a 100644 --- a/src/core/NEON/kernels/NEMedian3x3Kernel.cpp +++ b/src/core/NEON/kernels/NEMedian3x3Kernel.cpp @@ -61,13 +61,12 @@ void NEMedian3x3Kernel::configure(const ITensor *input, ITensor *output, bool bo constexpr unsigned int num_elems_read_per_iteration = 16; constexpr unsigned int num_elems_written_per_iteration = 8; constexpr unsigned int num_rows_read_per_iteration = 3; - constexpr int rect_offset_xy = -1; Window win = calculate_max_window(*input->info(), Steps(num_elems_processed_per_iteration), border_undefined, border_size()); AccessWindowHorizontal output_access(output->info(), 0, num_elems_written_per_iteration); update_window_and_padding(win, - AccessWindowRectangle(input->info(), rect_offset_xy, rect_offset_xy, num_elems_read_per_iteration, num_rows_read_per_iteration), + AccessWindowRectangle(input->info(), -border_size().left, -border_size().top, num_elems_read_per_iteration, num_rows_read_per_iteration), output_access); output_access.set_valid_region(win, input->info()->valid_region(), border_undefined, border_size()); |