copyTo
API Definition |
void copyTo(faiss::IndexIVFPQ *index) const |
|---|---|
Function |
Copies the retrieval resources of AscendIndexIVFPQ to the CPU. |
Input |
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. The resources occupied by the index are destroyed by the user. |
Parent topic: AscendIndexIVFPQ