Model Specific Functions#
Functions generated using the name of the .tflite model file. These APIs are currently usable only with the SiWx917 platform.
sl_ml_<model_name>_init#
sl_status_t sl_ml_<model_name>_model_init(void)
Create the error reporter and opcode resolver and initialize variables for the given model. <model_name>
is derived from the file name of your .tflite
file.
Returns
Status of model initialization.
SL_STATUS_OK
if successful, otherwise,SL_STATUS_FAIL
.
sl_ml_<model_name>_run#
sl_status_t sl_ml_<model_name>_model_run(void)
Execute the model once for inference. The output is updated internally in the model.
Returns
Status of model execution and inference.
SL_STATUS_OK
if successful, otherwise,SL_STATUS_FAIL
.