diff options
author | Nattapat Chaimanowong <nattapat.chaimanowong@arm.com> | 2018-11-28 10:44:37 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-11-28 13:57:58 +0000 |
commit | 5a4304a09fcbfd5fab4c73e5fd0d4cc9f3170395 (patch) | |
tree | c48ca6e33adec68612a90d19c734c2c085807493 /include/armnn | |
parent | 831faedd5d2f6306b23202fa4e450c6d241a44a0 (diff) | |
download | armnn-5a4304a09fcbfd5fab4c73e5fd0d4cc9f3170395.tar.gz |
IVGCVSW-2253 Add maximum layer and corresponding no-op factory implementation
Change-Id: I8964f5e8978c2d2a07734a381e3f7c656c22456a
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/ILayerSupport.hpp | 5 | ||||
-rw-r--r-- | include/armnn/INetwork.hpp | 5 | ||||
-rw-r--r-- | include/armnn/LayerSupport.hpp | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index 7677971c6b..b7a7b934ef 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -126,6 +126,11 @@ public: const TensorInfo* cellToOutputWeights, Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsMaximumSupported(const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsMeanSupported(const TensorInfo& input, const TensorInfo& output, const MeanDescriptor& descriptor, diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index ab50abcd4d..86b106f1ee 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -296,6 +296,11 @@ public: /// @return - Interface for configuring the layer. virtual IConnectableLayer* AddSubtractionLayer(const char* name = nullptr) = 0; + /// Add a Maximum layer to the network. + /// @param name - Optional name for the layer. + /// @ return - Interface for configuring the layer. + virtual IConnectableLayer* AddMaximumLayer(const char* name = nullptr) = 0; + /// Add a Mean layer to the network. /// @param meanDescriptor - Parameters for the mean operation. /// @param name - Optional name for the layer. diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index 83d79ec79e..9d450fcc71 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -145,6 +145,14 @@ bool IsLstmSupported(const BackendId& backend, const TensorInfo& input, const Te size_t reasonIfUnsupportedMaxLength = 1024); /// Deprecated in favor of IBackend and ILayerSupport interfaces +bool IsMaximumSupported(const BackendId& backend, + const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + char* reasonIfUnSupported = nullptr, + size_t reasonIfUnSupportedMaxLength = 0); + +/// Deprecated in favor of IBackend and ILayerSupport interfaces bool IsMergerSupported(const BackendId& backend, const std::vector<const TensorInfo*> inputs, const TensorInfo& output, |