ArmNN
 25.11
Loading...
Searching...
No Matches
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
16namespace armnn
17{
18
19class FusedLayer : public LayerWithParameters<FusedDescriptor>
20{
21public:
22 FusedLayer(const FusedDescriptor& param, const char* name);
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
33private:
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)
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
void ValidateTensorShapesFromInputs() override
FusedLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const FusedDescriptor &param, const char *name)
Copyright (c) 2021 ARM Limited and Contributors.
A FusedDescriptor for the FusedLayer.