ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FusedLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
10 
11 #include <armnn/Descriptors.hpp>
12 
13 #include <memory>
14 #include <functional>
15 
16 namespace armnn
17 {
18 
19 class FusedLayer : public LayerWithParameters<FusedDescriptor>
20 {
21 public:
22  FusedLayer(const FusedDescriptor& param, const char* name);
23  ~FusedLayer();
24 
25  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
26 
27  FusedLayer* Clone(Graph &graph) const override;
28 
29  void ValidateTensorShapesFromInputs() override;
30 
31  void ExecuteStrategy(IStrategy& strategy) const override;
32 
33 private:
34  FusedLayer(const FusedLayer& other) = delete;
35  FusedLayer& operator=(const FusedLayer& other) = delete;
36 };
37 
38 } // namespace armnn
FusedLayer(const FusedDescriptor &param, const char *name)
Definition: FusedLayer.cpp:15
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
Definition: FusedLayer.cpp:43
void ValidateTensorShapesFromInputs() override
Definition: FusedLayer.cpp:37
FusedLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Definition: FusedLayer.cpp:22
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: FusedLayer.cpp:29
Copyright (c) 2021 ARM Limited and Contributors.
A FusedDescriptor for the FusedLayer.