Release 18.08
[platform/upstream/armnn.git] / src / armnn / layers / AdditionLayer.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 <Layer.hpp>
8
9 namespace armnn
10 {
11
12 class AdditionLayer : public Layer
13 {
14 public:
15     virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph&            graph,
16                                                       const IWorkloadFactory& factory) const override;
17
18     AdditionLayer* Clone(Graph& graph) const override;
19
20     void ValidateTensorShapesFromInputs() override;
21
22     std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
23
24 protected:
25     AdditionLayer(const char* name);
26     ~AdditionLayer() = default;
27 };
28
29 } // namespace