AscendIndexIVFPQ
API Definition |
AscendIndexIVFPQ(int dims, int nlist, int subQuantizers, int bitsPerCode, faiss::MetricType metric, AscendIndexIVFPQConfig config = AscendIndexIVFPQConfig()) |
|---|---|
Function |
Constructor of AscendIndexIVFPQ, which is used to generate AscendIndexIVFPQ. The NPU resources are set based on the value configured in config. |
Input |
int dims: dimensions of a group of feature vectors managed by AscendIndexIVFPQ. int nlist: number of cluster centroids, which corresponds to coarse_centroid_num in the operator generation script. int subQuantizers: number of subquantizers of AscendIndexIVFPQ. int bitsPerCode: number of bits of AscendIndexIVFPQ faiss::MetricType metric: distance measurement type used by AscendIndex when it retrieves feature vector similarity. AscendIndexIVFFlatConfig config: resource configuration on the NPU. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
|