From 881c6842eadf2d2fd4578b9f62ee6238a83cad65 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Wed, 27 Feb 2019 14:26:51 +0000 Subject: COMPMID-1318: Implementing Winograd 7x7 NHWC on OpenCL -- Part II Change-Id: I036558d832c697da1fe9ea04ada0df38dc793914 Signed-off-by: giuros01 Reviewed-on: https://review.mlplatform.org/c/923 Comments-Addressed: Arm Jenkins Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins --- tests/datasets/ShapeDatasets.h | 96 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) (limited to 'tests/datasets') diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h index b6923c15c9..f3e3220fd6 100644 --- a/tests/datasets/ShapeDatasets.h +++ b/tests/datasets/ShapeDatasets.h @@ -580,6 +580,102 @@ public: } }; +/** Data set containing small 1x7 tensor shapes. */ +class Small1x7Shapes final : public ShapeDataset +{ +public: + Small1x7Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 1U, 7U, 7U, 4U }, + TensorShape{ 1U, 7U, 4U, 13U }, + TensorShape{ 1U, 7U, 9U, 2U }, + TensorShape{ 1U, 7U, 3U, 5U }, + }) + { + } +}; + +/** Data set containing large 1x7 tensor shapes. */ +class Large1x7Shapes final : public ShapeDataset +{ +public: + Large1x7Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 1U, 7U, 32U, 64U }, + TensorShape{ 1U, 7U, 51U, 13U }, + TensorShape{ 1U, 7U, 53U, 47U }, + TensorShape{ 1U, 7U, 128U, 384U }, + }) + { + } +}; + +/** Data set containing small 7x7 tensor shapes. */ +class Small7x7Shapes final : public ShapeDataset +{ +public: + Small7x7Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 7U, 7U, 7U, 4U }, + TensorShape{ 7U, 7U, 4U, 13U }, + TensorShape{ 7U, 7U, 9U, 2U }, + TensorShape{ 7U, 7U, 3U, 5U }, + }) + { + } +}; + +/** Data set containing large 7x7 tensor shapes. */ +class Large7x7Shapes final : public ShapeDataset +{ +public: + Large7x7Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 7U, 7U, 32U, 64U }, + TensorShape{ 7U, 7U, 51U, 13U }, + TensorShape{ 7U, 7U, 53U, 47U }, + TensorShape{ 7U, 7U, 128U, 384U }, + }) + { + } +}; + +/** Data set containing small 7x1 tensor shapes. */ +class Small7x1Shapes final : public ShapeDataset +{ +public: + Small7x1Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 7U, 1U, 7U, 4U }, + TensorShape{ 7U, 1U, 4U, 13U }, + TensorShape{ 7U, 1U, 9U, 2U }, + TensorShape{ 7U, 1U, 3U, 5U }, + }) + { + } +}; + +/** Data set containing large 7x1 tensor shapes. */ +class Large7x1Shapes final : public ShapeDataset +{ +public: + Large7x1Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 7U, 1U, 32U, 64U }, + TensorShape{ 7U, 1U, 51U, 13U }, + TensorShape{ 7U, 1U, 53U, 47U }, + TensorShape{ 7U, 1U, 128U, 384U }, + }) + { + } +}; + /** Data set containing small tensor shapes for deconvolution. */ class SmallDeconvolutionShapes final : public ShapeDataset { -- cgit v1.2.1