copyTo

API Definition

void copyTo(faiss::IndexIVFScalarQuantizer *index)

Function

Copies the retrieval resources of AscendIndexIVFSQFuzzy to the CPU.

Input

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

Output

N/A

Return Value

N/A

Restrictions

The index must be a valid CPUindex pointer.

The member variables of the index must meet the following requirements:

  • dim ∈ {64, 128, 256, 384, 512, 1024, 2048}
  • nlist ∈ {1024, 2048, 4096, 8192, 16384, 32768}
  • qtype = ScalarQuantizer::QuantizerType::QT_8bit (Currently, only ScalarQuantizer::QuantizerType::QT_8bit is supported.)
  • metric = faiss::MetricType::METRIC_INNER_PRODUCT
  • The resources occupied by the index are destroyed by the user.