blob: ab4de7741e6dcf66f1dd0a696adbaed05ddff9f5 (
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
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "arm_compute/runtime/ISimpleLifetimeManager.h"
namespace armnn
{
class OffsetLifetimeManager : public arm_compute::ISimpleLifetimeManager
{
public:
OffsetLifetimeManager();
OffsetLifetimeManager(const OffsetLifetimeManager&) = delete;
OffsetLifetimeManager& operator=(const OffsetLifetimeManager&) = delete;
OffsetLifetimeManager(OffsetLifetimeManager&&) = default;
OffsetLifetimeManager& operator=(OffsetLifetimeManager&&) = default;
std::unique_ptr<arm_compute::IMemoryPool> create_pool(arm_compute::IAllocator* allocator) override;
arm_compute::MappingType mapping_type() const override;
private:
void update_blobs_and_mappings() override;
private:
/// Memory blob size
size_t m_BlobSize;
};
} // namespace armnn
|