aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/kernels/convolution
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-12-12 17:17:50 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:42:33 +0000
commit1568621e07cef67c5bb01fa4cc827e218302040c (patch)
treecbe124f50043be3e1aa64abafe5d68a93cbbd305 /arm_compute/core/NEON/kernels/convolution
parent93b9bdb49f0f1e715c7ad251b6886c1a49945b5a (diff)
downloadComputeLibrary-1568621e07cef67c5bb01fa4cc827e218302040c.tar.gz
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 <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/convolution')
-rw-r--r--arm_compute/core/NEON/kernels/convolution/NEDirectConvolutionDetail.h17
1 files changed, 16 insertions, 1 deletions
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__ */