copyFrom
API Definition |
void copyFrom(const faiss::IndexIVFPQ *index) |
|---|---|
Function |
Copies AscendIndexIVFPQ to the Ascend based on an existing index and retains the resource configuration on the NPU of the original AscendIndex. |
Input |
const faiss::IndexIVFPQ *index: index resources on the CPU. |
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