AscendIndexIVFPQ
API Definition |
AscendIndexIVFPQ(const faiss::IndexIVFPQ *index, AscendIndexIVFPQConfig config = AscendIndexIVFPQConfig()) |
|---|---|
Function |
Constructor of AscendIndexIVFPQ, which is used to create a retrieval index on the Ascend based on an existing index. |
Input |
const faiss::IndexIVFPQ *index: resource configuration on the CPU. AscendIndexIVFPQConfig config: resource configuration on the NPU. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
The index must be a valid CPUindex pointer. The member functions of the index must meet the following requirements: d ∈ {64, 128, 256, 384, 512, 1024, 2048}, nlist ∈ {1024, 2048, 4096, 8192, 16384}, dim/subQuantizers ∈ {4, 8, 16, 32, 48, 64, 96, 128, 256}, bitsPerCode = 8, and metric = faiss::MetricType::METRIC_L2. |
Parent topic: AscendIndexIVFPQ