ArmNN  NotReleased
ActivationLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
12 class ActivationLayer : public LayerWithParameters<ActivationDescriptor>
13 {
14 public:
19  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
20 
23  ActivationLayer* Clone(Graph& graph) const override;
24 
26  void ValidateTensorShapesFromInputs() override;
27 
28  void Accept(ILayerVisitor& visitor) const override;
29 
30 
31 protected:
35  ActivationLayer(const ActivationDescriptor &param, const char* name);
36 
38  ~ActivationLayer() = default;
39 };
40 
41 } // namespace
ActivationLayer(const ActivationDescriptor &param, const char *name)
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:20
ActivationLayer * Clone(Graph &graph) const override
This layer represents an activation operation with the specified activation function.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of ActivationLayer.
~ActivationLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
void Accept(ILayerVisitor &visitor) const override