AscendIndexIVFSQ
API Definition |
AscendIndexIVFSQ(const faiss::IndexIVFScalarQuantizer *index, AscendIndexIVFSQConfig config = AscendIndexIVFSQConfig()) |
|---|---|
Function |
Constructor of AscendIndexIVFSQ, which is used to create a retrieval index on the Ascend based on an existing index. |
Input |
const faiss::IndexIVFScalarQuantizer *index: resource configuration on the CPU. AscendIndexIVFSQConfig config: resource configuration on the NPU. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
The index must be a valid CPUindex pointer. |
Parent topic: AscendIndexIVFSQ