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

◆ nrf_axon_nn_offset_to_output_ndx()

int nrf_axon_nn_offset_to_output_ndx ( const nrf_axon_nn_compiled_model_s * compiled_model,
uint8_t output_ndx )

Returns the offset into the packed output buffer filled for the start of a particular output node index.

Output node ndx 0 corresponds to the output described in the main compiled_model structures. Output nodes ndx 1 and greater are correspond to extra_outputs[]. Each node's output data is stored in packed format (ie, rows do not have to start on a 32bit boundary). However, each node's output data will start on a 32bit boundary.

Parameters
[in]compiled_modelModel to find the output offset for.
[in]output_ndxindex of the output to find the storage offset for.
Return values
Offsetinto the output buffer to the start of the output for this output index.