trainCodeBook
API definition |
void trainCodeBook(const AscendIndexCodeBookInitParams &codeBookInitParams) const; |
|---|---|
Function |
IVFSP codebook training API. If the training speed is slow, it could be due to OpenBLAS being installed with single-thread support. To speed up training, run export OMP_NUM_THREADS=4. |
Input |
const AscendIndexCodeBookInitParams &codeBookInitParams: initialization parameters required for codebook training |
Output |
N/A |
Return value |
N/A |
Restrictions |
Parent topic: AscendIndexIVFSP