Release 18.08
[platform/upstream/armnn.git] / src / armnn / layers / MergerLayer.hpp
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
4 //
5 #pragma once
6
7 #include "LayerWithParameters.hpp"
8
9 namespace armnn
10 {
11
12 class MergerLayer : public LayerWithParameters<OriginsDescriptor>
13 {
14 public:
15     virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph&            graph,
16                                                       const IWorkloadFactory& factory) const override;
17     virtual void CreateTensorHandles(Graph& graph, const IWorkloadFactory& factory) override;
18
19     MergerLayer* Clone(Graph& graph) const override;
20
21     void ValidateTensorShapesFromInputs() override;
22     std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
23
24 protected:
25     MergerLayer(const OriginsDescriptor& param, const char* name);
26     ~MergerLayer() = default;
27 };
28
29 } // namespace