From 1568621e07cef67c5bb01fa4cc827e218302040c Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Tue, 12 Dec 2017 17:17:50 +0000 Subject: COMPMID-744 Fixed access windows in DepthwiseConvolutionLayer Change-Id: I7bf4b5b85ce1e89006906db59403d06580e2e810 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/112974 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com Reviewed-by: Anthony Barbier --- .../kernels/convolution/NEDirectConvolutionDetail.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'arm_compute/core') diff --git a/arm_compute/core/NEON/kernels/convolution/NEDirectConvolutionDetail.h b/arm_compute/core/NEON/kernels/convolution/NEDirectConvolutionDetail.h index 657bcd63d0..c358558610 100644 --- a/arm_compute/core/NEON/kernels/convolution/NEDirectConvolutionDetail.h +++ b/arm_compute/core/NEON/kernels/convolution/NEDirectConvolutionDetail.h @@ -483,6 +483,21 @@ inline int get_input_num_elems_processed<3>(unsigned int num_elems_written_per_i { return num_elems_written_per_iteration * 3; } +inline int get_input_num_elems_processed(unsigned int num_elems_written_per_iteration, unsigned int stridex) +{ + switch(stridex) + { + case 1: + return get_input_num_elems_processed<1>(num_elems_written_per_iteration); + case 2: + return get_input_num_elems_processed<2>(num_elems_written_per_iteration); + case 3: + return get_input_num_elems_processed<3>(num_elems_written_per_iteration); + default: + ARM_COMPUTE_ERROR("stridex not supported"); + return 0; + } +} } } // namespace arm_compute -#endif /* __ARM_COMPUTE_NEDIRECTCONVOLUTIONDETAIL_H__ */ \ No newline at end of file +#endif /* __ARM_COMPUTE_NEDIRECTCONVOLUTIONDETAIL_H__ */ -- cgit v1.2.1