copyTo

API Definition

void copyTo(faiss::IndexIVFScalarQuantizer* index) const

Function

Copies the retrieval resources of AscendIndexInt8IVFFlat to the CPU.

Input

faiss::IndexScalarQuantizer* index: index resources on the CPU.

Output

N/A

Return Value

N/A

Restrictions

  • The index must be a valid CPUindex pointer.
  • index->metric_type ∈ {MetricType::METRIC_L2, MetricType::METRIC_INNER_PRODUCT}
  • 0 < index->nprobe ≤ index->nlist
  • index->quantizer: faiss::IndexFlat pointer.
  • The value of index->ntotal cannot exceed 1e9.
  • The resources occupied by the index are destroyed by the user.