From b89b05f048a566a8c825f1d223966bc5a6abc3d5 Mon Sep 17 00:00:00 2001 From: narpra01 Date: Wed, 16 Jan 2019 09:53:09 +0000 Subject: IVGCVSW-2508 Add no-op factory implementations and layer for Gather operator * Added GatherQueueDescriptor to WorkloadData * Added CreateGather function in WorkloadFactory.hpp * Added stub implementation of the CreateGreater function in workload factories * Added GatherLayer stub implementation * Added AddGatherLayer to Network * Added IsGatherSupported to LayerSupportBase Change-Id: I0408fd54e88a7d4e3d9e1c2811a9323f0da52a04 --- include/armnn/ILayerSupport.hpp | 5 +++++ include/armnn/INetwork.hpp | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include/armnn') diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index 929896d285..8d800f4cc0 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -137,6 +137,11 @@ public: const TensorInfo* cellToOutputWeights, Optional reasonIfUnsupported = EmptyOptional()) const = 0; + virtual bool IsGatherSupported(const TensorInfo& input0, + const TensorInfo& input1, + const TensorInfo& output, + Optional reasonIfUnsupported = EmptyOptional()) const = 0; + virtual bool IsMaximumSupported(const TensorInfo& input0, const TensorInfo& input1, const TensorInfo& output, diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index f31176ad7c..05962b95b7 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -343,6 +343,11 @@ public: /// @ return - Interface for configuring the layer. virtual IConnectableLayer* AddRsqrtLayer(const char* name = nullptr) = 0; + /// Add Gather layer to the network. + /// @param name - Optional name for the layer. + /// @ return - Interface for configuring the layer. + virtual IConnectableLayer* AddGatherLayer(const char* name = nullptr) = 0; + protected: ~INetwork() {} }; -- cgit v1.2.1