AddFeatures

API Definition

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

Function

Inserts n feature vectors with specified subscript indexes into the feature library. If a feature vector already exists at the subscript, modify it.

Input

int n: number of feature vectors to be inserted.

const float16_t *feature: feature vector.

const idx_t *indices: subscript index corresponding to the feature vector.

Output

N/A

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