aboutsummaryrefslogtreecommitdiff
path: root/tests/datasets/ShapeDatasets.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/datasets/ShapeDatasets.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/datasets/ShapeDatasets.h')
-rw-r--r--tests/datasets/ShapeDatasets.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h
index 3dc4566e18..173ee74958 100644
--- a/tests/datasets/ShapeDatasets.h
+++ b/tests/datasets/ShapeDatasets.h
@@ -35,19 +35,22 @@ namespace test
{
namespace datasets
{
-/** Data set containing 1D tensor shapes. */
-class Small1DShape final : public framework::dataset::SingletonDataset<TensorShape>
+/** Parent type for all for shape datasets. */
+using ShapeDataset = framework::dataset::ContainerDataset<std::vector<TensorShape>>;
+
+/** Data set containing small 1D tensor shapes. */
+class Small1DShapes final : public ShapeDataset
{
public:
- Small1DShape()
- : SingletonDataset("Shape", TensorShape{ 256U })
+ Small1DShapes()
+ : ShapeDataset("Shape",
+ {
+ TensorShape{ 256U }
+ })
{
}
};
-/** Parent type for all for shape datasets. */
-using ShapeDataset = framework::dataset::ContainerDataset<std::vector<TensorShape>>;
-
/** Data set containing small 2D tensor shapes. */
class Small2DShapes final : public ShapeDataset
{
@@ -169,6 +172,21 @@ public:
}
};
+/** Data set containing large 1D tensor shapes. */
+class Large1DShapes final : public ShapeDataset
+{
+public:
+ Large1DShapes()
+ : ShapeDataset("Shape",
+ {
+ TensorShape{ 1921U },
+ TensorShape{ 1245U },
+ TensorShape{ 4160U }
+ })
+ {
+ }
+};
+
/** Data set containing large 2D tensor shapes. */
class Large2DShapes final : public ShapeDataset
{