blob: fd28d0e7a86c580531749784d6a03d62506a53ba (
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
39
40
41
42
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "LayerWithParameters.hpp"
#include <backendsCommon/WorkloadFactory.hpp>
#include <armnn/Descriptors.hpp>
#include <memory>
namespace armnn
{
class PreCompiledLayer : public LayerWithParameters<PreCompiledDescriptor>
{
public:
PreCompiledLayer(const PreCompiledDescriptor& param, const char* name);
~PreCompiledLayer();
virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph,
const IWorkloadFactory& factory) const override;
PreCompiledLayer* Clone(Graph &graph) const override;
void ValidateTensorShapesFromInputs() override;
std::shared_ptr<void> GetPreCompiledObject() const;
void SetPreCompiledObject(const std::shared_ptr<void>& preCompiledObject);
private:
PreCompiledLayer(const PreCompiledLayer& other) = delete;
PreCompiledLayer& operator=(const PreCompiledLayer& other) = delete;
std::shared_ptr<void> m_PreCompiledObject;
};
} // namespace armnn
|