From 6eb9fcae005d63e2de4a0c538b911967160fcd9b Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Wed, 11 Oct 2017 12:16:57 +0100 Subject: COMPMID-569 - Implemented reference implementation and validation tests (NEON and CL) for Median3x3 Change-Id: I7028f0bcc4a502261210f536ed604a7651ab6726 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/91332 Tested-by: Kaizen Reviewed-by: Gian Marco Iodice Reviewed-by: Georgios Pinitas --- src/core/NEON/kernels/NEMedian3x3Kernel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/NEON/kernels/NEMedian3x3Kernel.cpp') 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()); -- cgit v1.2.1