Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_axon_nn_model_async_init()

nrf_axon_result_e nrf_axon_nn_model_async_init ( nrf_axon_nn_model_async_inference_wrapper_s * model_wrapper,
const nrf_axon_nn_compiled_model_s * compiled_model )

Initialize a model for asynchronous inference. Calls nrf_axon_nn_model_validate then binds the model wrapper structure to its compiled model and performs some data initialization. Model is ready to be inferred upon completion. Called once per model at start-up.

Parameters
[out]the_modelAllocated nrf_axon_nn_model_inference_wrapper_s instance in static (non-stack) memory that will be passed to inference functions.
[in]compiled_modelPointer to compiled model that will be bound to the_model.
Return values
0on success or a negative error code.