ONE - On-device Neural Engine
|
#include <SimpleMemoryManager.h>
Public Member Functions | |
void | allocate_memory (luci_interpreter::Tensor &tensor) final |
void | release_memory (luci_interpreter::Tensor &tensor) final |
uint8_t * | allocate_memory (const circle::Tensor *tensor) |
void | release_memory (uint8_t *data) |
Public Member Functions inherited from luci_interpreter::IMemoryManager | |
virtual | ~IMemoryManager ()=default |
Definition at line 25 of file SimpleMemoryManager.h.
uint8_t * luci_interpreter::SimpleMemoryManager::allocate_memory | ( | const circle::Tensor * | tensor | ) |
Definition at line 24 of file SimpleMemoryManager.cpp.
References luci_interpreter::getDataTypeSize().
|
finalvirtual |
Implements luci_interpreter::IMemoryManager.
Definition at line 22 of file SimpleMemoryManager.cpp.
References flatbuffers::data(), luci_interpreter::getDataTypeSize(), and release_memory().
|
finalvirtual |
Implements luci_interpreter::IMemoryManager.
Definition at line 41 of file SimpleMemoryManager.cpp.
References flatbuffers::data().
Referenced by allocate_memory().
void luci_interpreter::SimpleMemoryManager::release_memory | ( | uint8_t * | data | ) |
Definition at line 34 of file SimpleMemoryManager.cpp.
References flatbuffers::data().