GetFeatures

API Definition

virtual APP_ERROR GetFeatures(int n, float16_t *features, const idx_t *indices) = 0

Function

Queries n feature vectors with specified subscript indexes.

Input

N/A

Output

float16_t *features: queries the feature vector corresponding to the subscript index. Before calling this API, you need to allocate the memory to ensure that the memory size is correct.

Return Value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

The input parameters must meet the requirements of the implementation class of this class