UpdateFeatures
API definition |
APP_ERROR UpdateFeatures (int n, const float16_t *features, const idx_t *indices); |
|---|---|
Function |
Updates n feature vectors with specified indexes to the feature database. This operation adds new vectors where they do not exist and modifies existing ones at the specified indexes. |
Input |
int n: number of feature vectors to be inserted. const float16_t *features: feature vectors to be inserted. The length is n × dim (vector dimension). const idx_t *indices: index corresponding to a feature vector to be inserted. The valid length is n. |
Output |
N/A |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
|
API definition |
APP_ERROR UpdateFeatures(int n, const float *features, const idx_t *indices); |
|---|---|
Function |
Updates n feature vectors with specified indexes to the feature database. This operation adds new vectors where they do not exist and modifies existing ones at the specified indexes. |
Input |
int n: number of feature vectors to be inserted. const float *features: feature vectors to be inserted. The length is n × dim (vector dimension). const idx_t *indices: index corresponding to the feature vector to be inserted. The valid length is n. |
Output |
N/A |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
|