From 0e3fe10bfe1b4f006f6e0c5c2fae8fb5515c7544 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Mon, 23 Jan 2023 19:32:06 +0000 Subject: IVGCVSW-7455 Workaround to allow CLBatchMatMul to parse some 4D models * Added ability to reduce dimension sizes when calling BuildArmComputeTensorInfo or BuildArmComputeTensorShapes, this will attempt to remove leading 1s in order to squeeze the number of dimensions but retain the size. * Changed ClBatchMatMulWorkload to attempt to squeeze the number of dimensions to 3 as the CL Gemm Kernel can only support up to 3 dimensions. Signed-off-by: Mike Kelly Change-Id: I6b3d0886c5b97fdb686838fc3dc292833ddc4643 --- delegate/src/test/BatchMatMulTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'delegate/src') diff --git a/delegate/src/test/BatchMatMulTest.cpp b/delegate/src/test/BatchMatMulTest.cpp index d13d8dcf43..06ad2c3be2 100644 --- a/delegate/src/test/BatchMatMulTest.cpp +++ b/delegate/src/test/BatchMatMulTest.cpp @@ -1,5 +1,5 @@ // -// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -677,6 +677,7 @@ namespace armnnDelegate std::vector backends = {armnn::Compute::GpuAcc}; BatchMatMul2DFp32SimpleTest (backends); BatchMatMul3DFp32SimpleTest (backends); + BatchMatMul4DFp32SimpleTest (backends); BatchMatMul3DFp32BatchTest (backends); BatchMatMul3DFp32BroadcastTest (backends); BatchMatMul3D2DFp32BroadcastTest (backends); -- cgit v1.2.1