From 2099595bac339c953bf4291be12703c8845e916e Mon Sep 17 00:00:00 2001 From: FrancisMurtagh Date: Mon, 17 Dec 2018 12:11:36 +0000 Subject: IVGCVSW-2398 Add no-op factory implementations for all backends for the Equal operation * Add QueueDescriptor in WorkloadData.hpp * Add CreateEqual function in WorkloadFactory.hpp * Added stub implementation of the CreateEqual function in RefWorkloadFactory, NeonWorkloadFactory and ClWorkloadFactory Change-Id: Iec6dc2f989c67fa6f0c32cfb93508995c8580783 --- include/armnn/ILayerSupport.hpp | 5 +++++ include/armnn/INetwork.hpp | 5 +++++ include/armnn/LayerSupport.hpp | 7 +++++++ 3 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index 71ad50d5be..e8840cb29e 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -81,6 +81,11 @@ public: const TensorInfo& output, Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsEqualSupported(const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsFakeQuantizationSupported(const TensorInfo& input, const FakeQuantizationDescriptor& descriptor, Optional reasonIfUnsupported = EmptyOptional()) const; diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index 7c88cf0f00..63fd78bb69 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -333,6 +333,11 @@ public: /// @ return - Interface for configuring the layer. virtual IConnectableLayer* AddGreaterLayer(const char* name = nullptr) = 0; + /// Add a Equal layer to the network. + /// @param name - Optional name for the layer. + /// @ return - Interface for configuring the layer. + virtual IConnectableLayer* AddEqualLayer(const char* name = nullptr) = 0; + protected: ~INetwork() {} }; diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index 5b96bc6d01..5a5ba98f72 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -295,4 +295,11 @@ bool IsGreaterSupported(const BackendId& backend, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); +/// Deprecated in favor of IBackend and ILayerSupport interfaces +bool IsEqualSupported(const BackendId& backend, + const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + char* reasonIfUnsupported = nullptr, + size_t reasonIfUnsupportedMaxLength = 1024); } -- cgit v1.2.1