From 5420b28d54c5238ed4c4aa2ccf02a7c3855c6760 Mon Sep 17 00:00:00 2001 From: Gian Marco Date: Wed, 29 Nov 2017 10:41:38 +0000 Subject: 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 Reviewed-by: Michel Iwaniec Reviewed-by: Georgios Pinitas --- tests/AssetsLibrary.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/AssetsLibrary.h') 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); -- cgit v1.2.1