blob: 2e5d011599e85dd74f8a376b7adbeb141d179906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|