Release 18.08
[platform/upstream/armnn.git] / src / armnn / layers / SoftmaxLayer.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 SoftmaxLayer : public LayerWithParameters<SoftmaxDescriptor>
13 {
14 public:
15     virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph&            graph,
16                                                       const IWorkloadFactory& factory) const override;
17
18     SoftmaxLayer* Clone(Graph& graph) const override;
19
20     void ValidateTensorShapesFromInputs() override;
21
22 protected:
23     SoftmaxLayer(const SoftmaxDescriptor& param, const char* name);
24     ~SoftmaxLayer() = default;
25 };
26
27 } // namespace