aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-03-23 14:35:05 +0000
committerSadik Armagan <sadik.armagan@arm.com>2020-03-23 14:35:05 +0000
commitcae7e927a5b5559f67bb87a1737f6606d5d6f328 (patch)
treeb9311e0d3ee8e5049d314e8c4da8bedc5bc053bb
parent793a70c1a5b8021137705d312916ac14ca35509a (diff)
downloadandroid-nn-driver-cae7e927a5b5559f67bb87a1737f6606d5d6f328.tar.gz
IVGCVSW-3813 Add Unary Elementwise Operation 'NEG' support to the android-nn-driver
!armnn:2917 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I6e38fd3d11dc3e30dfac0ddfc39b216b2a15d047
-rw-r--r--1.2/HalPolicy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/1.2/HalPolicy.cpp b/1.2/HalPolicy.cpp
index 1811688..ca92318 100644
--- a/1.2/HalPolicy.cpp
+++ b/1.2/HalPolicy.cpp
@@ -150,6 +150,8 @@ bool HalPolicy::ConvertOperation(const Operation& operation, const Model& model,
return ConvertMinimum(operation, model, data);
case V1_2::OperationType::MUL:
return ConvertMul(operation, model, data);
+ case V1_2::OperationType::NEG:
+ return ConvertElementwiseUnary(operation, model, data, UnaryOperation::Neg);
case V1_2::OperationType::NOT_EQUAL:
return ConvertComparison(operation, model, data, ComparisonOperation::NotEqual);
case V1_2::OperationType::PAD: