From a1d3c6a49f35d7d3f11cc7e1b588d1d5401bdbf1 Mon Sep 17 00:00:00 2001 From: Mohamed Nour Abouelseoud Date: Thu, 27 Dec 2018 12:39:16 +0000 Subject: IVGCVSW-2371 Add Rsqrt Ref implementation *Added Unit Tests Change-Id: I6cceb8e6dcda35ce08415f8e5ca86019a64d26e3 --- include/armnn/ILayerSupport.hpp | 4 ++++ include/armnn/INetwork.hpp | 5 +++++ include/armnn/LayerSupport.hpp | 7 +++++++ 3 files changed, 16 insertions(+) (limited to 'include') diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index e8840cb29e..af38b07f39 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -195,6 +195,10 @@ public: virtual bool IsResizeBilinearSupported(const TensorInfo& input, Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsRsqrtSupported(const TensorInfo& input, + const TensorInfo& output, + Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsSoftmaxSupported(const TensorInfo& input, const TensorInfo& output, const SoftmaxDescriptor& descriptor, diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index 63fd78bb69..5f341ad6fa 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -338,6 +338,11 @@ public: /// @ return - Interface for configuring the layer. virtual IConnectableLayer* AddEqualLayer(const char* name = nullptr) = 0; + /// Add Reciprocal of square root layer to the network. + /// @param name - Optional name for the layer. + /// @ return - Interface for configuring the layer. + virtual IConnectableLayer* AddRsqrtLayer(const char* name = nullptr) = 0; + protected: ~INetwork() {} }; diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index 5a5ba98f72..446dd705b0 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -248,6 +248,13 @@ bool IsReshapeSupported(const BackendId& backend, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); +/// Deprecated in favor of IBackend and ILayerSupport interfaces +bool IsRsqrtSupported(const BackendId& backend, + const TensorInfo& input, + const TensorInfo& output, + char* reasonIfUnsupported = nullptr, + size_t reasonIfUnsupportedMaxLength = 1024); + /// Deprecated in favor of IBackend and ILayerSupport interfaces bool IsFloorSupported(const BackendId& backend, const TensorInfo& input, -- cgit v1.2.1