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

◆ nrf_axon_nn_copy_output_to_packed_buffer()

void nrf_axon_nn_copy_output_to_packed_buffer ( const nrf_axon_nn_compiled_model_s * compiled_model,
void * to_buffer )

Copies and packs the model inference output from the common interlayer buffer to the users dedicated buffer to_buffer.

It is not recommended for users to invoke this function directly. The inference APIs handle copying the output results in a safe manner that do not risk corrupting the current or future inferences.

This function cannot be called safely in synchronous or asynchronous inference modes unless the caller knows a-priori that no other inferences are occurring or will occur (ie, a simple one model system).

Parameters
[in]compiled_modelmodel that just completed inference to copy output from.
[out]to_bufferallocated buffer to copy output to. Must be sized to store all the outputs in the model, with each output starting on the next 32bit boundary after the prior one.