From 876be2a0d11874d871860dbd22481f831d6878f6 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Tue, 3 Jul 2018 12:22:09 +0100 Subject: COMPMID-1339 - Implementing Winograd Convolution Layer 1x5 and 5x1 kernels on OpenCL NCHW Change-Id: Ia293cd89651146a0e27e5f7c74ca9c924807e83c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/138707 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- tests/datasets/ShapeDatasets.h | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'tests/datasets/ShapeDatasets.h') diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h index 766530b0d7..bc98b1e471 100644 --- a/tests/datasets/ShapeDatasets.h +++ b/tests/datasets/ShapeDatasets.h @@ -500,6 +500,70 @@ public: } }; +/** Data set containing small 5x1 tensor shapes. */ +class Small5x1Shapes final : public ShapeDataset +{ +public: + Small5x1Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 5U, 1U, 7U, 4U }, + TensorShape{ 5U, 1U, 4U, 13U }, + TensorShape{ 5U, 1U, 9U, 2U }, + TensorShape{ 5U, 1U, 3U, 5U }, + }) + { + } +}; + +/** Data set containing large 5x1 tensor shapes. */ +class Large5x1Shapes final : public ShapeDataset +{ +public: + Large5x1Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 5U, 1U, 32U, 64U }, + TensorShape{ 5U, 1U, 51U, 13U }, + TensorShape{ 5U, 1U, 53U, 47U }, + TensorShape{ 5U, 1U, 128U, 384U }, + }) + { + } +}; + +/** Data set containing small 1x5 tensor shapes. */ +class Small1x5Shapes final : public ShapeDataset +{ +public: + Small1x5Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 1U, 5U, 7U, 4U }, + TensorShape{ 1U, 5U, 4U, 13U }, + TensorShape{ 1U, 5U, 9U, 2U }, + TensorShape{ 1U, 5U, 3U, 5U }, + }) + { + } +}; + +/** Data set containing large 1x5 tensor shapes. */ +class Large1x5Shapes final : public ShapeDataset +{ +public: + Large1x5Shapes() + : ShapeDataset("Shape", + { + TensorShape{ 1U, 5U, 32U, 64U }, + TensorShape{ 1U, 5U, 51U, 13U }, + TensorShape{ 1U, 5U, 53U, 47U }, + TensorShape{ 1U, 5U, 128U, 384U }, + }) + { + } +}; + /** Data set containing small tensor shapes for deconvolution. */ class SmallDeconvolutionShapes final : public ShapeDataset { -- cgit v1.2.1