train
API Definition |
void train(Index::idx_t n, const float *x) override |
|---|---|
Function |
Trains the quantizer of AscendIndexSQ. It inherits the APIs in AscendFaiss and provides specific implementation. You must train the index before using the add method. |
Input |
Index::idx_t n: number of feature vectors in the training dataset. const float *x: feature vector data. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
|
Parent topic: AscendIndexSQ