ONE - On-device Neural Engine
|
Class to plan memory by firstfit way. More...
#include <MemoryPlanner.h>
Public Member Functions | |
void | claim (const Index &, size_t) override |
Claim memory for tensor by firstfit way. | |
void | release (const Index &) override |
Release memory for tensor by firstfit way. | |
uint32_t | capacity () override |
Get capacity for memory planning. | |
MemoryPlans & | memory_plans () override |
Get MemoryPlans. | |
Public Member Functions inherited from onert::backend::basic::IMemoryPlanner< Index > | |
virtual | ~IMemoryPlanner ()=default |
Additional Inherited Members | |
Public Types inherited from onert::backend::basic::IMemoryPlanner< Index > | |
using | MemoryPlans = std::unordered_map< Index, Block > |
Class to plan memory by firstfit way.
Definition at line 80 of file MemoryPlanner.h.
|
inlineoverridevirtual |
Get capacity for memory planning.
Implements onert::backend::basic::IMemoryPlanner< Index >.
Definition at line 101 of file MemoryPlanner.h.
|
overridevirtual |
Claim memory for tensor by firstfit way.
[in] | index | The tensor index |
[in] | size | The size of the memory |
Implements onert::backend::basic::IMemoryPlanner< Index >.
Definition at line 62 of file MemoryPlanner.cc.
|
inlineoverridevirtual |
Get MemoryPlans.
Implements onert::backend::basic::IMemoryPlanner< Index >.
Definition at line 106 of file MemoryPlanner.h.
|
overridevirtual |
Release memory for tensor by firstfit way.
[in] | index | The tensor index |
Implements onert::backend::basic::IMemoryPlanner< Index >.
Definition at line 94 of file MemoryPlanner.cc.