From 5ba5e0938e68d4f90f5545a81066d56f022b376a Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Thu, 6 Dec 2018 17:13:09 +0000 Subject: COMPMID-1774: Implement CLGEMMReshapeLHSMatrixKernel to reshape the LHS matrix of GEMM/GEMMLowp Change-Id: I8c5fd4c8bcdffda1522c83158981ed92baa045f4 Reviewed-on: https://review.mlplatform.org/364 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- tests/datasets/ShapeDatasets.h | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'tests/datasets') diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h index f7e7ae26b9..875f7e8ea1 100644 --- a/tests/datasets/ShapeDatasets.h +++ b/tests/datasets/ShapeDatasets.h @@ -892,6 +892,62 @@ public: { } }; + +/** Data set containing small tensor shapes to be used with the GEMM reshaping kernel */ +class SmallGEMMReshape2DShapes final : public ShapeDataset +{ +public: + SmallGEMMReshape2DShapes() + : ShapeDataset("Shape", + { + TensorShape{ 63U, 72U }, + }) + { + } +}; + +/** Data set containing small tensor shapes to be used with the GEMM reshaping kernel when the input has to be reinterpreted as 3D */ +class SmallGEMMReshape3DShapes final : public ShapeDataset +{ +public: + SmallGEMMReshape3DShapes() + : ShapeDataset("Shape", + { + TensorShape{ 63U, 9U, 8U }, + }) + { + } +}; + +/** Data set containing large tensor shapes to be used with the GEMM reshaping kernel */ +class LargeGEMMReshape2DShapes final : public ShapeDataset +{ +public: + LargeGEMMReshape2DShapes() + : ShapeDataset("Shape", + { + TensorShape{ 16U, 27U }, + TensorShape{ 533U, 171U }, + TensorShape{ 345U, 612U } + }) + { + } +}; + +/** Data set containing large tensor shapes to be used with the GEMM reshaping kernel when the input has to be reinterpreted as 3D */ +class LargeGEMMReshape3DShapes final : public ShapeDataset +{ +public: + LargeGEMMReshape3DShapes() + : ShapeDataset("Shape", + { + TensorShape{ 16U, 3U, 9U }, + TensorShape{ 533U, 19U, 9U }, + TensorShape{ 345U, 34U, 18U } + }) + { + } +}; } // namespace datasets } // namespace test } // namespace arm_compute -- cgit v1.2.1