From d267b05aaaec9b462a8c988c7b5fcebd5776c72f Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Mon, 19 Feb 2018 16:46:03 +0000 Subject: 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 Reviewed-by: Anthony Barbier --- arm_compute/core/NEON/kernels/convolution/common/utils.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'arm_compute/core/NEON/kernels') 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 -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); } -- cgit v1.2.1