From 96880cf00707d394938ec7fe31c21c79a2ac3f0c Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 20 Oct 2017 18:52:20 +0100 Subject: COMPMID-640: FullyConnectedLayer failures on both NEON/CL Change-Id: Idd830cff054114123229c189e423b753b8064146 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/92623 Reviewed-by: Robert Hughes Tested-by: Kaizen Reviewed-by: Anthony Barbier --- src/core/AccessWindowTranspose.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/AccessWindowTranspose.cpp') diff --git a/src/core/AccessWindowTranspose.cpp b/src/core/AccessWindowTranspose.cpp index b1043305b8..4506a0b44c 100644 --- a/src/core/AccessWindowTranspose.cpp +++ b/src/core/AccessWindowTranspose.cpp @@ -201,8 +201,8 @@ bool AccessWindowTranspose::update_padding_if_needed(const Window &window) const PaddingSize padding; padding.left = std::max(0, -min_x); padding.right = std::max(0, max_x - shape[0]); - padding.top = shape.num_dimensions() == 1 ? 0 : std::max(0, -min_y); - padding.bottom = shape.num_dimensions() == 1 ? 0 : std::max(0, max_y - shape[1]); + padding.top = std::max(0, -min_y); + padding.bottom = std::max(0, max_y - shape[1]); // Update strides in tensor info return _info->extend_padding(padding); -- cgit v1.2.1