diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-09-17 12:33:31 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 5eab6c72d20c1edccfb177d5f5458b45c2714e3b (patch) | |
tree | 7c47ea4999085672ca566ce3e8998a22ee19c977 /src/core | |
parent | 0ce0844de22c483883ff3c40373434d5944d86ca (diff) | |
download | ComputeLibrary-5eab6c72d20c1edccfb177d5f5458b45c2714e3b.tar.gz |
COMPMID-536: Fix padding for 1D tensors
Change-Id: I56618e7c8f23ad88b2fafdbb78a095df17a547fb
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87951
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/IAccessWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/IAccessWindow.cpp b/src/core/IAccessWindow.cpp index 4ddc0fef1d..693d851a5d 100644 --- a/src/core/IAccessWindow.cpp +++ b/src/core/IAccessWindow.cpp @@ -213,8 +213,8 @@ bool AccessWindowRectangle::update_padding_if_needed(const Window &window) const PaddingSize padding; padding.left = std::max(0, -min_x); padding.right = std::max<int>(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<int>(0, max_y - shape[1]); + padding.top = std::max(0, -min_y); + padding.bottom = std::max<int>(0, max_y - shape[1]); // Update strides in tensor info return _info->extend_padding(padding); |