aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/GatherLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/layers/GatherLayer.cpp')
-rw-r--r--src/armnn/layers/GatherLayer.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/armnn/layers/GatherLayer.cpp b/src/armnn/layers/GatherLayer.cpp
new file mode 100644
index 0000000000..2e5d011599
--- /dev/null
+++ b/src/armnn/layers/GatherLayer.cpp
@@ -0,0 +1,37 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "GatherLayer.hpp"
+#include "LayerCloneBase.hpp"
+
+#include <armnn/TypesUtils.hpp>
+#include <backendsCommon/WorkloadData.hpp>
+#include <backendsCommon/WorkloadFactory.hpp>
+
+namespace armnn
+{
+
+GatherLayer::GatherLayer(const char* name)
+ : Layer(2, 1, LayerType::Gather, name)
+{
+}
+
+std::unique_ptr<IWorkload> GatherLayer::CreateWorkload(const armnn::Graph& graph,
+ const armnn::IWorkloadFactory& factory) const
+{
+ GatherQueueDescriptor descriptor;
+ return factory.CreateGather(descriptor, PrepInfoAndDesc(descriptor, graph));
+}
+
+GatherLayer* GatherLayer::Clone(Graph& graph) const
+{
+ return CloneBase<GatherLayer>(graph, GetName());
+}
+
+void GatherLayer::ValidateTensorShapesFromInputs()
+{
+}
+
+} // namespace armnn