1 #ifndef _MA_ENGINE_BASE_H_
2 #define _MA_ENGINE_BASE_H_
5 #include <forward_list>
8 #include "../ma_common.h"
28 virtual ma_err_t load(
const void* model_data,
size_t model_size) = 0;
31 virtual ma_err_t load(
const std::string& model_path) = 0;
46 #if MA_USE_ENGINE_TENSOR_NAME
47 virtual int32_t getInputNum(
const char* name) = 0;
48 virtual int32_t getOutputNum(
const char* name) = 0;
Definition: ma_engine_base.h:17
virtual int32_t getInputSize()=0
virtual ma_err_t init(size_t size)=0
virtual ma_quant_param_t getOutputQuantParam(int32_t index)=0
virtual ~Engine()=default
virtual ma_quant_param_t getInputQuantParam(int32_t index)=0
virtual ma_shape_t getInputShape(int32_t index)=0
virtual ma_shape_t getOutputShape(int32_t index)=0
virtual ma_err_t setInput(int32_t index, const ma_tensor_t &tensor)=0
virtual int32_t getOutputSize()=0
virtual ma_tensor_t getInput(int32_t index)=0
virtual ma_err_t init(void *pool, size_t size)=0
virtual ma_err_t load(const void *model_data, size_t model_size)=0
virtual ma_err_t init()=0
virtual ma_tensor_t getOutput(int32_t index)=0
ma_err_t
Definition: ma_types.h:21
Definition: ma_engine_base.h:15
Definition: ma_types.h:44
Definition: ma_types.h:49
Definition: ma_types.h:74