index_ascend_to_cpu

API Definition

faiss::Index *index_ascend_to_cpu(const faiss::Index *ascend_index)

Function

Copies and generates a retrieval index on the CPU based on the retrieval index resources on the Ascend.

Input

const faiss::Index *ascend_index: index resources on the Ascend.

Output

N/A

Return Value

Generates a retrieval index on the CPU.

Restrictions

After using the index, delete the pointer to destroy the corresponding space.