assign
API Definition |
void assign(Index::idx_t n, const int8_t *x, Index::idx_t *labels, Index::idx_t k = 1) |
|---|---|
Function |
Queries the feature vectors for AscendIndexInt8 and returns IDs of the most similar k features based on the input feature vectors. |
Input |
idx_t n: number of feature vectors to be queried. const int8_t *x: feature vector data. idx_t k: number of the most similar results to be returned. |
Output |
idx_t *labels: IDs of the first k nearest vectors that are queried. |
Return Value |
N/A |
Restrictions |
|
Parent topic: AscendIndexInt8