aboutsummaryrefslogtreecommitdiff
path: root/tests/datasets/SmallGEMMLowpDataset.h
diff options
context:
space:
mode:
authorRamy Elgammal <ramy.elgammal@arm.com>2022-09-08 11:30:08 +0100
committerGunes Bayir <gunes.bayir@arm.com>2022-09-21 08:28:49 +0000
commita77c6d774053672b7bf0261e1a7a229bb6be5f21 (patch)
tree853427c98338094d25dc8c468c6fbb8d05797d04 /tests/datasets/SmallGEMMLowpDataset.h
parent047e5d058804e0107c77ee4e4384db55e7dd6bcf (diff)
downloadComputeLibrary-a77c6d774053672b7bf0261e1a7a229bb6be5f21.tar.gz
Add test for ClGemmLowpMatrixMultiplyCore to test a batched matrix multiplication with variable input tensors
Resolves: COMPMID-5506 Signed-off-by: Ramy Elgammal <ramy.elgammal@arm.com> Change-Id: I8345a3b7a83ef46f9ec7a77197cc65c933ec9ac6 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8239 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/datasets/SmallGEMMLowpDataset.h')
-rw-r--r--tests/datasets/SmallGEMMLowpDataset.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/datasets/SmallGEMMLowpDataset.h b/tests/datasets/SmallGEMMLowpDataset.h
index b8529ac165..929940d2d9 100644
--- a/tests/datasets/SmallGEMMLowpDataset.h
+++ b/tests/datasets/SmallGEMMLowpDataset.h
@@ -76,6 +76,22 @@ public:
add_config(TensorShape(16U, 16U, 5U, 3U), TensorShape(8U, 16U), TensorShape(8U, 16U, 5U, 3U), -9, 1);
}
};
+
+class SmallGEMMLowpBatchedMatMulDataset final : public GEMMLowpDataset
+{
+public:
+ SmallGEMMLowpBatchedMatMulDataset()
+ {
+ add_config(TensorShape(4U, 3U), TensorShape(2U, 4U), TensorShape(2U, 3U), 0, 0);
+ add_config(TensorShape(12U, 15U), TensorShape(7U, 12U), TensorShape(7U, 15U), 0, 0);
+ add_config(TensorShape(59U, 17U), TensorShape(36U, 59U), TensorShape(36U, 17U), -2, 13);
+ add_config(TensorShape(2U, 4U, 3U), TensorShape(5U, 2U, 3U), TensorShape(5U, 4U, 3U), -2, 0);
+ add_config(TensorShape(15U, 7U, 36U), TensorShape(29U, 15U, 36U), TensorShape(29U, 7U, 36U), -9, 1);
+ add_config(TensorShape(56U, 17U, 32U), TensorShape(5U, 56U, 32U), TensorShape(5U, 17U, 32U), -3, 2);
+ add_config(TensorShape(13U, 256U, 32U), TensorShape(19U, 13U, 32U), TensorShape(19U, 256U, 32U), 5, 13);
+ }
+};
+
} // namespace datasets
} // namespace test
} // namespace arm_compute