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