aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/FusedLayer.hpp
blob: e26a3797071fe3d35017cbb50b00d1ed2a12273b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include "LayerWithParameters.hpp"
#include <armnn/backends/WorkloadFactory.hpp>

#include <armnn/Descriptors.hpp>

#include <memory>
#include <functional>

namespace armnn
{

class FusedLayer : public LayerWithParameters<FusedDescriptor>
{
public:
    FusedLayer(const FusedDescriptor& param, const char* name);
    ~FusedLayer();

    virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;

    FusedLayer* Clone(Graph &graph) const override;

    void ValidateTensorShapesFromInputs() override;

    void ExecuteStrategy(IStrategy& strategy) const override;

private:
    FusedLayer(const FusedLayer& other) = delete;
    FusedLayer& operator=(const FusedLayer& other) = delete;
};

} // namespace armnn