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/ILayerVisitor.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/armnn/ILayerVisitor.hpp') diff --git a/include/armnn/ILayerVisitor.hpp b/include/armnn/ILayerVisitor.hpp index 9669b3a7cb..46f9e5698f 100644 --- a/include/armnn/ILayerVisitor.hpp +++ b/include/armnn/ILayerVisitor.hpp @@ -24,6 +24,7 @@ public: /// function is invoked. /// @param layer - pointer to the layer which is calling back to this visit function. /// @param name - Optional name for the layer. + ARMNN_DEPRECATED_MSG("Use VisitElementwiseUnaryLayer instead") virtual void VisitAbsLayer(const IConnectableLayer* layer, const char* name = nullptr) = 0; @@ -168,6 +169,14 @@ public: virtual void VisitDivisionLayer(const IConnectableLayer* layer, const char* name = nullptr) = 0; + /// Function a ElementwiseUnary layer should call back to when its Accept(ILayerVisitor&) function is invoked. + /// @param layer - pointer to the layer which is calling back to this visit function. + /// @param elementwiseUnaryDescriptor - Description of the layer. + /// @param name - Optional name for the layer. + virtual void VisitElementwiseUnaryLayer(const IConnectableLayer* layer, + const ElementwiseUnaryDescriptor& elementwiseUnaryDescriptor, + const char* name = nullptr) = 0; + /// Function an Equal layer should call back to when its Accept(ILayerVisitor&) function is invoked. /// @param layer - pointer to the layer which is calling back to this visit function. /// @param name - Optional name for the layer. @@ -388,6 +397,7 @@ public: /// function is invoked. /// @param layer - pointer to the layer which is calling back to this visit function. /// @param name - Optional name for the layer. + ARMNN_DEPRECATED_MSG("Use VisitElementwiseUnaryLayer instead") virtual void VisitRsqrtLayer(const IConnectableLayer* layer, const char* name = nullptr) = 0; -- cgit v1.2.1