trainCodeBookFromMem
API definition |
void trainCodeBookFromMem(const AscendIndexCodeBookInitFromMemParams &codeBookInitFromMemParams) const; |
|---|---|
Function |
IVFSP codebook training API. Training data is loaded from memory. If the training speed is slow, the bottleneck may be due to a single-threaded OpenBLAS installation. In this case, you can use export OMP_NUM_THREADS=4 to accelerate training. |
Input |
const AscendIndexCodeBookInitFromMemParams &codeBookInitFromMemParams: initialization parameters required for codebook training |
Output |
N/A |
Return value |
N/A |
Restrictions |
For details about AscendIndexCodeBookInitFromMemParams, see AscendIndexCodeBookInitFromMemParams. |
Parent topic: AscendIndexIVFSP