ArmNN  NotReleased
PreluLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 
13 // This layer represents a PReLU activation operation.
14 class PreluLayer : public Layer
15 {
16 public:
21  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
22 
25  PreluLayer* Clone(Graph& graph) const override;
26 
31  std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
32 
35  void ValidateTensorShapesFromInputs() override;
36 
37  void Accept(ILayerVisitor& visitor) const override;
38 
39 protected:
42  PreluLayer(const char* name);
43 
45  ~PreluLayer() = default;
46 };
47 
48 } // namespace armnn
PreluLayer(const char *name)
Definition: PreluLayer.cpp:17
~PreluLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: PreluLayer.cpp:21
void ValidateTensorShapesFromInputs() override
Definition: PreluLayer.cpp:97
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Definition: PreluLayer.cpp:35
void Accept(ILayerVisitor &visitor) const override
Definition: PreluLayer.cpp:115
PreluLayer * Clone(Graph &graph) const override
Definition: PreluLayer.cpp:28