AscendIndexInt8Flat

API Definition

AscendIndexInt8Flat(const faiss::IndexScalarQuantizer *index, AscendIndexInt8FlatConfig config = AscendIndexInt8FlatConfig())

Function

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

Input

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

AscendIndexInt8FlatConfig config: resource configuration on the NPU.

Output

N/A

Return Value

N/A

Restrictions

The index must be a valid CPUindex pointer, that is, the faiss::IndexScalarQuantizer pointer generated by AscendIndexInt8Flat when calling copyTo.