From 90539697433b507e20cf0d56f6c7f18614e03973 Mon Sep 17 00:00:00 2001 From: kevmay01 Date: Thu, 29 Nov 2018 08:40:19 +0000 Subject: IVGCVSW-2245 Add Minimum Layer and no-op Factory implementation Change-Id: I03fa374fd9692d98257de709f8c3ad0a49c88b95 --- include/armnn/ILayerSupport.hpp | 5 +++++ include/armnn/INetwork.hpp | 5 +++++ include/armnn/LayerSupport.hpp | 8 ++++++++ 3 files changed, 18 insertions(+) (limited to 'include') diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index b7a7b934ef..eecaa43271 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -141,6 +141,11 @@ public: const OriginsDescriptor& descriptor, Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsMinimumSupported(const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& ouput, + Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsMultiplicationSupported(const TensorInfo& input0, const TensorInfo& input1, const TensorInfo& output, diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index 86b106f1ee..31f1dc2b91 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -323,6 +323,11 @@ public: virtual IConnectableLayer* AddStridedSliceLayer(const StridedSliceDescriptor& stridedSliceDescriptor, const char* name = nullptr) = 0; + /// Add a Minimum layer to the network. + /// @param name - Optional name for the layer. + /// @ return - Interface for configuring the layer. + virtual IConnectableLayer* AddMinimumLayer(const char* name = nullptr) = 0; + protected: ~INetwork() {} }; diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index 9d450fcc71..979579820a 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -271,4 +271,12 @@ bool IsStridedSliceSupported(const BackendId& backend, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); +/// Deprecated in favor of IBackend and ILayerSupport interfaces +bool IsMinimumSupported(const BackendId& backend, + const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + char* reasonIfUnsupported = nullptr, + size_t reasonIfUnsupportedMaxLength = 1024); + } -- cgit v1.2.1