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

◆ nrf_axon_nn_get_classification()

int16_t nrf_axon_nn_get_classification ( const nrf_axon_nn_compiled_model_s * compiled_model,
const int8_t * packed_output,
const char ** label,
int32_t * score )

Gets the inference results for a classification model.

Returns the inference index, and populates optional parameters label, score of the highest scoring class. Only valid for single dimension, classification type models.

Parameters
[in]compiled_modelModel to get results for.
[in]packed_outputLocation of model output. If NULL, output is looked for in the interlayer buffer. This is not safe in dynamic systems.
[out]labelText of the classification label (if labels were provided in the compiled model).
[out]scoreScore of the highest scoring classification.
Return values
Indexof highest scoring classification.