aboutsummaryrefslogtreecommitdiff
path: root/tests/AssetsLibrary.h
diff options
context:
space:
mode:
authorGian Marco <gianmarco.iodice@arm.com>2017-11-29 10:41:38 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:41:36 +0000
commit5420b28d54c5238ed4c4aa2ccf02a7c3855c6760 (patch)
tree44d201142f71622eaf9d711e2d38d4e1360586df /tests/AssetsLibrary.h
parenta5e6d67ddad4c88cec87b23063e8493768bb2c61 (diff)
downloadComputeLibrary-5420b28d54c5238ed4c4aa2ccf02a7c3855c6760.tar.gz
COMPMID-710 - Fix CLTranspose and NETranspose when the input shape is a
vector Fixed replacing AccessWindowTranspose with AccessWindowStatic due to the wrong padding calculation in the X direction within AccessWindowTranspose. AccessWindowTranspose should be fixed with COMPMID-708 Change-Id: I665e130b897a213ae2bf9da4bf092dd491fa00c6 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/111057 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com> Reviewed-by: Michel Iwaniec <michel.iwaniec@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/AssetsLibrary.h')
-rw-r--r--tests/AssetsLibrary.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/AssetsLibrary.h b/tests/AssetsLibrary.h
index 6eb1e3c5f4..49e3a83399 100644
--- a/tests/AssetsLibrary.h
+++ b/tests/AssetsLibrary.h
@@ -380,7 +380,10 @@ void AssetsLibrary::fill_borders_with_garbage(T &&tensor, D &&distribution, std:
Window window;
window.set(0, Window::Dimension(-padding_size.left, tensor.shape()[0] + padding_size.right, 1));
- window.set(1, Window::Dimension(-padding_size.top, tensor.shape()[1] + padding_size.bottom, 1));
+ if(tensor.shape().num_dimensions() > 1)
+ {
+ window.set(1, Window::Dimension(-padding_size.top, tensor.shape()[1] + padding_size.bottom, 1));
+ }
std::mt19937 gen(_seed);