17#include "luci_interpreter/Interpreter.h"
19#include "loader/ModuleLoader.h"
24#ifdef USE_STATIC_ALLOC
28 _runtime_module = std::make_unique<RuntimeModule>();
38 _memory_manager = std::make_unique<StaticMemoryManager>(
43 _memory_manager = std::make_unique<SimpleMemoryManager>();
46 _memory_manager->is_allocate_input(
configuration.getAllocateInputValue());
48 ModuleLoader loader();
52 ModuleLoader loader(_runtime_module.get(), _memory_manager.get());
71 auto *runtime_graph = _runtime_module.getMainGraph();
78 auto *runtime_graph = _runtime_module.getMainGraph();
87 assert(
data !=
nullptr);
89 auto *runtime_graph = _runtime_module.getMainGraph();
99 auto *runtime_graph = _runtime_module.getMainGraph();
106 auto *runtime_graph = _runtime_module.getMainGraph();
void allocateAndWriteInputTensor(int32_t input_tensor_index, const uint8_t *data, size_t data_size)
int32_t getInputDataSizeByIndex(int32_t input_tensor_index)
uint8_t * allocateInputTensor(int32_t input_tensor_index)
Interpreter(const luci::Module *module)
void readOutputTensor(const luci::CircleOutput *output_node, void *data, size_t data_size)
int32_t getOutputDataSizeByIndex(int32_t output_tensor_index)
const T * data(const std::vector< T, Alloc > &v)
T must_cast(loco::Node *node)