1 #ifndef _MA_ENGINE_CVI_H_
2 #define _MA_ENGINE_CVI_H_
8 #include "../ma_common.h"
12 #include <cviruntime.h>
19 class EngineCVI final :
public Engine {
22 ~EngineCVI()
override;
26 ma_err_t init(
void* pool,
size_t size)
override;
30 ma_err_t load(
const void* model_data,
size_t model_size)
override;
32 ma_err_t load(
const char* model_path)
override;
33 ma_err_t load(
const std::string& model_path)
override;
36 int32_t getInputSize()
override;
37 int32_t getOutputSize()
override;
40 ma_shape_t getInputShape(int32_t index)
override;
41 ma_shape_t getOutputShape(int32_t index)
override;
47 int32_t getInputNum(
const char* name)
override;
48 int32_t getOutputNum(
const char* name)
override;
51 CVI_MODEL_HANDLE model;
52 CVI_TENSOR* input_tensors;
53 CVI_TENSOR* output_tensors;
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