copyTo

API definition

void copyTo(faiss::IndexFlat *index) const;

Function

Copies the retrieval resources of AscendIndexFlat to the CPU.

Input

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

Output

N/A

Return value

N/A

Restrictions

index must be a valid CPU Index pointer. The resources occupied by the index are destroyed by the user.

API definition

void copyTo(faiss::IndexIDMap*index) const;

Function

Copies the retrieval resources of AscendIndexFlat to the CPU.

Input

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

Output

N/A

Return value

N/A

Restrictions

index must be a valid IndexIDMap pointer. The resources occupied by the index are destroyed by the user.