SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::engine::Engine Class Referenceabstract

#include <ma_engine_base.h>

Collaboration diagram for ma::engine::Engine:

Public Member Functions

 Engine ()=default
 
virtual ~Engine ()=default
 
virtual ma_err_t init ()=0
 
virtual ma_err_t init (size_t size)=0
 
virtual ma_err_t init (void *pool, size_t size)=0
 
virtual ma_err_t run ()=0
 
virtual ma_err_t load (const void *model_data, size_t model_size)=0
 
virtual int32_t getInputSize ()=0
 
virtual int32_t getOutputSize ()=0
 
virtual ma_tensor_t getInput (int32_t index)=0
 
virtual ma_tensor_t getOutput (int32_t index)=0
 
virtual ma_shape_t getInputShape (int32_t index)=0
 
virtual ma_shape_t getOutputShape (int32_t index)=0
 
virtual ma_quant_param_t getInputQuantParam (int32_t index)=0
 
virtual ma_quant_param_t getOutputQuantParam (int32_t index)=0
 
virtual ma_err_t setInput (int32_t index, const ma_tensor_t &tensor)=0
 

Constructor & Destructor Documentation

◆ Engine()

ma::engine::Engine::Engine ( )
default

◆ ~Engine()

virtual ma::engine::Engine::~Engine ( )
virtualdefault

Member Function Documentation

◆ getInput()

virtual ma_tensor_t ma::engine::Engine::getInput ( int32_t  index)
pure virtual
Here is the caller graph for this function:

◆ getInputQuantParam()

virtual ma_quant_param_t ma::engine::Engine::getInputQuantParam ( int32_t  index)
pure virtual

◆ getInputShape()

virtual ma_shape_t ma::engine::Engine::getInputShape ( int32_t  index)
pure virtual
Here is the caller graph for this function:

◆ getInputSize()

virtual int32_t ma::engine::Engine::getInputSize ( )
pure virtual
Here is the caller graph for this function:

◆ getOutput()

virtual ma_tensor_t ma::engine::Engine::getOutput ( int32_t  index)
pure virtual
Here is the caller graph for this function:

◆ getOutputQuantParam()

virtual ma_quant_param_t ma::engine::Engine::getOutputQuantParam ( int32_t  index)
pure virtual

◆ getOutputShape()

virtual ma_shape_t ma::engine::Engine::getOutputShape ( int32_t  index)
pure virtual
Here is the caller graph for this function:

◆ getOutputSize()

virtual int32_t ma::engine::Engine::getOutputSize ( )
pure virtual
Here is the caller graph for this function:

◆ init() [1/3]

virtual ma_err_t ma::engine::Engine::init ( )
pure virtual

◆ init() [2/3]

virtual ma_err_t ma::engine::Engine::init ( size_t  size)
pure virtual

◆ init() [3/3]

virtual ma_err_t ma::engine::Engine::init ( void *  pool,
size_t  size 
)
pure virtual

◆ load()

virtual ma_err_t ma::engine::Engine::load ( const void *  model_data,
size_t  model_size 
)
pure virtual

◆ run()

virtual ma_err_t ma::engine::Engine::run ( )
pure virtual
Here is the caller graph for this function:

◆ setInput()

virtual ma_err_t ma::engine::Engine::setInput ( int32_t  index,
const ma_tensor_t tensor 
)
pure virtual