From 4a3c61091037e7e86e8b03bb060d8c1ab82731a9 Mon Sep 17 00:00:00 2001 From: josh minor Date: Mon, 6 Jan 2020 16:40:46 -0600 Subject: IVGCVSW-4259 Add frontend and reference workload for UnaryOperationLayer * Added new layer named ElementwiseUnary * Deprecated existing Abs/Rsqrt layer functions * Updated existing Abs/Rsqrt test infrastructure to use new layer * Added boilerplate for new Exp,Neg,Sqrt elemwise op layers * AbsQuantize test removed pending future commit * Serialization support added !android-nn-driver:2550 Change-Id: Ic595c645925e17b45db568187fd05646daf2e87f Signed-off-by: josh minor --- include/armnn/Descriptors.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/armnn/Descriptors.hpp') diff --git a/include/armnn/Descriptors.hpp b/include/armnn/Descriptors.hpp index ba9a56ad38..45c0f421f3 100644 --- a/include/armnn/Descriptors.hpp +++ b/include/armnn/Descriptors.hpp @@ -78,6 +78,26 @@ struct ComparisonDescriptor ComparisonOperation m_Operation; }; +/// A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer +struct ElementwiseUnaryDescriptor +{ + ElementwiseUnaryDescriptor() + : ElementwiseUnaryDescriptor(UnaryOperation::Abs) + {} + + ElementwiseUnaryDescriptor(UnaryOperation operation) + : m_Operation(operation) + {} + + bool operator ==(const ElementwiseUnaryDescriptor &rhs) const + { + return m_Operation == rhs.m_Operation; + } + + /// Specifies the elementwiseUnary operation to execute + UnaryOperation m_Operation; +}; + /// A PermuteDescriptor for the PermuteLayer. struct PermuteDescriptor { -- cgit v1.2.1