AscendIndexInt8Flat
API Definition |
AscendIndexInt8Flat(const faiss::IndexIDMap *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::IndexIDMap *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::IndexIDMap pointer generated by AscendIndexInt8Flat when calling copyTo. |
Parent topic: AscendIndexInt8Flat