ONE - On-device Neural Engine
|
#include <ModuleLoader.h>
Public Member Functions | |
ModuleLoader (const luci::Module *module, RuntimeModule *runtime_module, RuntimeToIR &runtime_to_ir, std::unordered_map< const loco::Node *, Tensor * > &node_to_tensor, IMemoryManager *memory_manager) | |
void | load () |
Static Public Member Functions | |
static void | load (RuntimeModule *runtime_module, MemoryManager *memory_manager, const char *model_data_raw, bool dealloc_input) |
Definition at line 31 of file ModuleLoader.h.
luci_interpreter::ModuleLoader::ModuleLoader | ( | const luci::Module * | module, |
RuntimeModule * | runtime_module, | ||
RuntimeToIR & | runtime_to_ir, | ||
std::unordered_map< const loco::Node *, Tensor * > & | node_to_tensor, | ||
IMemoryManager * | memory_manager | ||
) |
Definition at line 24 of file ModuleLoader.cpp.
void luci_interpreter::ModuleLoader::load | ( | ) |
Definition at line 33 of file ModuleLoader.cpp.
References luci_interpreter::RuntimeModule::addGraph(), luci::Module::graph(), luci_interpreter::GraphLoader::initInputOutputTensors(), luci_interpreter::GraphLoader::loadOperators(), luci_interpreter::GraphLoader::loadTensors(), and luci::Module::size().
Referenced by luci_interpreter::Interpreter::Interpreter(), luci_interpreter::Interpreter::Interpreter(), and luci_interpreter::Interpreter::Interpreter().
|
static |
Definition at line 24 of file ModuleLoader.cpp.
References luci_interpreter::RuntimeModule::addGraph(), luci_interpreter::GraphLoader::checkInplaceOps(), luci_interpreter::RuntimeGraph::configure(), luci_interpreter::RuntimeModule::getCircleReader(), luci_interpreter::RuntimeModule::getRuntimeGraphAt(), luci::CircleReader::num_subgraph(), luci::CircleReader::parse(), and luci::CircleReader::select_subgraph().