aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornarpra01 <narumol.prangnawarat@arm.com>2019-01-16 09:53:09 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-01-16 16:30:10 +0000
commitb89b05f048a566a8c825f1d223966bc5a6abc3d5 (patch)
tree1a7027e329fd687456a165a0d88be865626a407b /include
parent6c8e8e7594604cca672486db224c1d041b39bfb9 (diff)
downloadarmnn-b89b05f048a566a8c825f1d223966bc5a6abc3d5.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/armnn/ILayerSupport.hpp5
-rw-r--r--include/armnn/INetwork.hpp5
2 files changed, 10 insertions, 0 deletions
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<std::string&> reasonIfUnsupported = EmptyOptional()) const = 0;
+ virtual bool IsGatherSupported(const TensorInfo& input0,
+ const TensorInfo& input1,
+ const TensorInfo& output,
+ Optional<std::string&> 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() {}
};