diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2022-10-19 08:48:07 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-01-09 15:09:46 +0000 |
commit | 94916a5c06065bca0b232106bd4ae68f9986b7b0 (patch) | |
tree | 1510f0e09f48305ce3a2c32e7adfddcc2da7b39a /delegate/src | |
parent | c998108fbd4c134286b481768a873c54ae744a70 (diff) | |
download | armnn-94916a5c06065bca0b232106bd4ae68f9986b7b0.tar.gz |
IVGCVSW-6493 Add GpuAcc Batch MatMul workload Fp32
* GpuAcc only supports up to 3D, so no 4D test have been added
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ie926cd45c350be624cbdc6cb27c89d2d3f60884b
Diffstat (limited to 'delegate/src')
-rw-r--r-- | delegate/src/test/BatchMatMulTest.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/delegate/src/test/BatchMatMulTest.cpp b/delegate/src/test/BatchMatMulTest.cpp index e5cb976c45..d13d8dcf43 100644 --- a/delegate/src/test/BatchMatMulTest.cpp +++ b/delegate/src/test/BatchMatMulTest.cpp @@ -268,7 +268,7 @@ namespace armnnDelegate { // Set input data std::vector<int32_t> LHSInputShape { 2,2,2 }; - std::vector<int32_t> RHSInputShape { 1,2,2 }; + std::vector<int32_t> RHSInputShape { 2,2 }; std::vector<int32_t> outputShape { 2,2,2 }; std::vector<float> LHSInputValues = { 1, 2, @@ -670,4 +670,19 @@ namespace armnnDelegate BatchMatMul2DFp32SimpleAdjointTest(backends); } } + TEST_SUITE("BATCH_MATMUL_GpuAccTests") + { + TEST_CASE("BATCH_MATMUL_Fp32_GpuAccTests") + { + std::vector <armnn::BackendId> backends = {armnn::Compute::GpuAcc}; + BatchMatMul2DFp32SimpleTest (backends); + BatchMatMul3DFp32SimpleTest (backends); + BatchMatMul3DFp32BatchTest (backends); + BatchMatMul3DFp32BroadcastTest (backends); + BatchMatMul3D2DFp32BroadcastTest (backends); + BatchMatMul2DFp32TinyTest (backends); + BatchMatMulNonSquareFp32Test (backends); + BatchMatMul2DFp32SimpleAdjointTest(backends); + } + } } |