17#ifndef LUCI_INTERPRETER_INTERPRETER_H
18#define LUCI_INTERPRETER_INTERPRETER_H
20#include "luci_interpreter/core/Tensor.h"
22#ifdef USE_STATIC_ALLOC
29#include "loader/ModuleLoader.h"
38class TrainingOnertMicro;
47 explicit Interpreter(
const char *model_data_raw,
bool dealloc_input);
49#ifdef USE_STATIC_ALLOC
51 explicit Interpreter(
const char *model_data_raw,
const InterpreterConfigure &configuration);
68 friend class training::TrainingOnertMicro;
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)