diff options
author | Mohamed Nour Abouelseoud <mohamednour.abouelseoud@arm.com> | 2018-12-27 12:39:16 +0000 |
---|---|---|
committer | Mohamed Nour Abouelseoud <mohamednour.abouelseoud@arm.com> | 2019-01-07 11:51:21 +0000 |
commit | a1d3c6a49f35d7d3f11cc7e1b588d1d5401bdbf1 (patch) | |
tree | b5aca3b07f2935adc3abe25a14e7bd66ff5201fc /include/armnn | |
parent | d5b9e6497b03d58c671c15b9ebe8e35500171f06 (diff) | |
download | armnn-a1d3c6a49f35d7d3f11cc7e1b588d1d5401bdbf1.tar.gz |
IVGCVSW-2371 Add Rsqrt Ref implementation
*Added Unit Tests
Change-Id: I6cceb8e6dcda35ce08415f8e5ca86019a64d26e3
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/ILayerSupport.hpp | 4 | ||||
-rw-r--r-- | include/armnn/INetwork.hpp | 5 | ||||
-rw-r--r-- | include/armnn/LayerSupport.hpp | 7 |
3 files changed, 16 insertions, 0 deletions
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<std::string&> reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsRsqrtSupported(const TensorInfo& input, + const TensorInfo& output, + Optional<std::string&> 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 @@ -249,6 +249,13 @@ bool IsReshapeSupported(const BackendId& backend, 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, const TensorInfo& output, |