From 381fcf20c3ee028e14c154ff4b75bc7410f91168 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 12 Mar 2019 12:49:55 +0000 Subject: COMPMID-1995: Allow calculations being performed in pixels borders in conv. Change-Id: Ia260a595cea564271a248e2793b2be30e5869661 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/845 Reviewed-by: Pablo Marquez Tested-by: Arm Jenkins --- src/core/Utils.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp index 73eaf64228..44d819942e 100644 --- a/src/core/Utils.cpp +++ b/src/core/Utils.cpp @@ -383,18 +383,6 @@ const std::pair arm_compute::scaled_dimensions(unsig ARM_COMPUTE_ERROR("Unsupported rounding type"); } - // Make sure that border operations will start from inside the input and not the padded area - if(((w - 1) * stride_x) >= (width + pad_left)) - { - --w; - } - if(((h - 1) * stride_y) >= (height + pad_top)) - { - --h; - } - ARM_COMPUTE_ERROR_ON(((w - 1) * stride_x) >= (width + pad_left)); - ARM_COMPUTE_ERROR_ON(((h - 1) * stride_y) >= (height + pad_top)); - return std::make_pair(w, h); } -- cgit v1.2.1