From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_ref_memory_manager_8hpp_source.xhtml | 131 ++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 21.02/_ref_memory_manager_8hpp_source.xhtml (limited to '21.02/_ref_memory_manager_8hpp_source.xhtml') diff --git a/21.02/_ref_memory_manager_8hpp_source.xhtml b/21.02/_ref_memory_manager_8hpp_source.xhtml new file mode 100644 index 0000000000..efbde513fe --- /dev/null +++ b/21.02/_ref_memory_manager_8hpp_source.xhtml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/RefMemoryManager.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefMemoryManager.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 #include <forward_list>
10 #include <vector>
11 
12 namespace armnn
13 {
14 
15 // An implementation of IMemoryManager to be used with RefTensorHandle
17 {
18 public:
20  virtual ~RefMemoryManager();
21 
22  class Pool;
23 
24  Pool* Manage(unsigned int numBytes);
25 
26  void Allocate(Pool *pool);
27 
28  void* GetPointer(Pool *pool);
29 
30  void Acquire() override;
31  void Release() override;
32 
33  class Pool
34  {
35  public:
36  Pool(unsigned int numBytes);
37  ~Pool();
38 
39  void Acquire();
40  void Release();
41 
42  void* GetPointer();
43 
44  void Reserve(unsigned int numBytes);
45 
46  private:
47  unsigned int m_Size;
48  void* m_Pointer;
49  };
50 
51 private:
52  RefMemoryManager(const RefMemoryManager&) = delete; // Noncopyable
53  RefMemoryManager& operator=(const RefMemoryManager&) = delete; // Noncopyable
54 
55  std::forward_list<Pool> m_Pools;
56  std::vector<Pool*> m_FreePools;
57 };
58 
59 }
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+ + + +
Pool * Manage(unsigned int numBytes)
+ + + +
void Reserve(unsigned int numBytes)
+ +
Pool(unsigned int numBytes)
+ + + +
void * GetPointer(Pool *pool)
+
+
+ + + + -- cgit v1.2.1