aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/armnn_delegate.cpp
diff options
context:
space:
mode:
authorJames Conroy <james.conroy@arm.com>2021-05-27 17:44:50 +0100
committerJames Conroy <james.conroy@arm.com>2021-05-27 18:08:33 +0100
commit3982548e928c58b1c5d876d3b14fae452cef37ca (patch)
tree95fc31de6551e7ffbba488217b387dfe534b1088 /delegate/src/armnn_delegate.cpp
parent25485592c6e4d1694f98a43a3f9f62d484f7f014 (diff)
downloadarmnn-3982548e928c58b1c5d876d3b14fae452cef37ca.tar.gz
IVGCVSW-6061 Add PRELU support to TF Lite delegate
* Alpha is supported both as a constant and as an input tensor. Signed-off-by: James Conroy <james.conroy@arm.com> Change-Id: I20f30d479b87dc5fbcf75a1ce5305d70ae9b0646
Diffstat (limited to 'delegate/src/armnn_delegate.cpp')
-rw-r--r--delegate/src/armnn_delegate.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/delegate/src/armnn_delegate.cpp b/delegate/src/armnn_delegate.cpp
index 7e4f5b5602..0c984ecc82 100644
--- a/delegate/src/armnn_delegate.cpp
+++ b/delegate/src/armnn_delegate.cpp
@@ -24,6 +24,7 @@
#include "Pack.hpp"
#include "Pad.hpp"
#include "Pooling.hpp"
+#include "Prelu.hpp"
#include "Quantization.hpp"
#include "Redefine.hpp"
#include "Reduce.hpp"
@@ -733,11 +734,11 @@ TfLiteStatus ArmnnSubgraph::VisitNode(DelegateData& delegateData,
nodeIndex,
kTfLiteBuiltinPadv2);
case kTfLiteBuiltinPrelu:
- return VisitActivationOperator(delegateData,
- tfLiteContext,
- tfLiteNode,
- nodeIndex,
- kTfLiteBuiltinPrelu);
+ return VisitPreluOperator(delegateData,
+ tfLiteContext,
+ tfLiteNode,
+ nodeIndex,
+ kTfLiteBuiltinPrelu);
case kTfLiteBuiltinQuantize:
return VisitQuantizeOperator(delegateData,
tfLiteContext,