aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-03-12 12:49:55 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-03-13 12:28:52 +0000
commit381fcf20c3ee028e14c154ff4b75bc7410f91168 (patch)
treeba8e59b98d2a88634e937406fda21c7e51b83825
parenta42f55f4184cb63c73b74ed76759bdcbb18656e8 (diff)
downloadComputeLibrary-381fcf20c3ee028e14c154ff4b75bc7410f91168.tar.gz
COMPMID-1995: Allow calculations being performed in pixels borders in conv.
Change-Id: Ia260a595cea564271a248e2793b2be30e5869661 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/845 Reviewed-by: Pablo Marquez <pablo.tello@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/core/Utils.cpp12
1 files changed, 0 insertions, 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<unsigned int, unsigned int> 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);
}