aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/kernels/convolution/common
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2018-02-19 16:46:03 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:18 +0000
commitd267b05aaaec9b462a8c988c7b5fcebd5776c72f (patch)
treea069b62f1294a07c6190d0e043ecdba6f7a2a27c /arm_compute/core/NEON/kernels/convolution/common
parent1fbb8120aa4f5ea2e73393421611ffea803a05b4 (diff)
downloadComputeLibrary-d267b05aaaec9b462a8c988c7b5fcebd5776c72f.tar.gz
COMPMID-784: Fixed SAME paddding in WinogradLayer
There were mismatches when using kernel size 5 and padding = SAME Change-Id: Id834e96ebcf665616f99c995b48e302dcff8dc48 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121144 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/convolution/common')
-rw-r--r--arm_compute/core/NEON/kernels/convolution/common/utils.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/arm_compute/core/NEON/kernels/convolution/common/utils.hpp b/arm_compute/core/NEON/kernels/convolution/common/utils.hpp
index d8b9c3b7d3..a22809fb58 100644
--- a/arm_compute/core/NEON/kernels/convolution/common/utils.hpp
+++ b/arm_compute/core/NEON/kernels/convolution/common/utils.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -25,13 +25,15 @@
#pragma once
double TimeInUs(void);
-void PrintMatrix(const float* const m, const int M, const int N, const int row_stride);
+void PrintMatrix(const float *const m, const int M, const int N, const int row_stride);
-inline int iceildiv(const int a, const int b) {
- return (a + b - 1) / b;
+inline int iceildiv(const int a, const int b)
+{
+ return (a + b - 1) / b;
}
template <typename T>
-inline T roundup(const T a, const T b) {
- return a + b - (a % b);
+inline T roundup(const T a, const T b)
+{
+ return b * iceildiv(a, b);
}