AscendIndexInt8IVFFlat

API Definition

AscendIndexInt8IVFFlat(const faiss::IndexIVFScalarQuantizer *index, AscendIndexInt8IVFFlatConfig config = AscendIndexInt8IVFFlatConfig())

Function

Constructor of AscendIndexInt8IVFFlat, which is used to create a retrieval index on the Ascend based on an existing index.

Input

const faiss::IndexIVFScalarQuantizer *index: resource configuration on the CPU.

AscendIndexInt8IVFFlatConfig config: resource configuration on the NPU.

Output

N/A

Return Value

N/A

Restrictions

The index must be a valid CPUindex pointer.