diff options
author | Ryan OShea <ryan.oshea3@arm.com> | 2022-09-21 16:09:41 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2022-09-22 10:55:33 +0000 |
commit | 49ed0df12338b1e99674edeee4200acf8c05750e (patch) | |
tree | 85f0806dde1d8f24c74a986d732e91904da5899a /delegate/src/armnn_delegate.cpp | |
parent | 9636a9b109fcbc811ec876ba9ca6512b7fbe2ba0 (diff) | |
download | armnn-49ed0df12338b1e99674edeee4200acf8c05750e.tar.gz |
IVGCVSW-6498 Add Support for Batch MatMul to TfLite Delegate
* Creates delegate/src/BatchMatMul.hpp
* Add VisitBatchMatMul function
* Add BatchMatMul to switch in armnn_delegate
* Creates delegate/src/test/BatchMatMulTest.cpp
* Creates delegate/src/test/BatchMatMulTestHelper.hpp
* Add Int8 and Fp32 unit tests on ref backend
* Add BatchMatMul to delegate supported ops
Signed-off-by: Ryan OShea <ryan.oshea3@arm.com>
Change-Id: I50e61314cf063f986c8a0f7d508847a96953735e
Diffstat (limited to 'delegate/src/armnn_delegate.cpp')
-rw-r--r-- | delegate/src/armnn_delegate.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/delegate/src/armnn_delegate.cpp b/delegate/src/armnn_delegate.cpp index c041dd1714..21c66fe706 100644 --- a/delegate/src/armnn_delegate.cpp +++ b/delegate/src/armnn_delegate.cpp @@ -9,6 +9,7 @@ #include "Activation.hpp" #include "ArgMinMax.hpp" +#include "BatchMatMul.hpp" #include "BatchSpace.hpp" #include "Comparison.hpp" #include "Convolution.hpp" @@ -566,6 +567,12 @@ TfLiteStatus ArmnnSubgraph::VisitNode(DelegateData& delegateData, tfLiteNode, nodeIndex, kTfLiteBuiltinAveragePool2d); + case kTfLiteBuiltinBatchMatmul: + return VisitBatchMatMulOperator(delegateData, + tfLiteContext, + tfLiteNode, + nodeIndex, + kTfLiteBuiltinBatchMatmul); case kTfLiteBuiltinBatchToSpaceNd: return VisitBatchToSpaceNdOperator(delegateData, tfLiteContext, |