LIBML Version 4.1.9
LIBML NN Software Library
Loading...
Searching...
No Matches
UTIL

Functions

tpt_nn_status tpt_top_k_s8 (q7_t *aOutData, uint32_t *aOut_idx, q7_t *aInData, uint32_t aKer_value, uint32_t aCount)
 This function finds the k largest values and their indices from the signed 8-bit integer input vector.

Detailed Description

Function Documentation

◆ tpt_top_k_s8()

tpt_nn_status tpt_top_k_s8 ( q7_t * aOutData,
uint32_t * aOut_idx,
q7_t * aInData,
uint32_t aKer_value,
uint32_t aCount )

This function finds the k largest values and their indices from the signed 8-bit integer input vector.

Parameters
aOutDatathe k largest values in the input vector
aOut_idxindices of the k largest values in the input vector
aInDatapointer of the input vector
aKer_valuenumber of the largest values to be searched
aCountnumber of elements in the input vector
Returns
tpt_nn_status