copyTo
API definition |
void copyTo(faiss::IndexBinaryFlat *index) const; |
|---|---|
Function |
Copies an existing AscendIndexBinaryFlat to faiss::IndexBinaryFlat index and clears the original index resources. |
Input |
faiss::IndexBinaryFlat *index: faiss::IndexBinaryFlat pointer. |
Output |
N/A |
Return value |
N/A |
Restrictions |
index must be a valid IndexBinaryFlat pointer. The copied index resources are destroyed by the user. |
API definition |
void copyTo(faiss::IndexBinaryIDMap *index) const; |
|---|---|
Function |
Copies an existing AscendIndexBinaryFlat to faiss::IndexBinaryIDMap index and clears the original index resources. |
Input |
faiss::IndexBinaryIDMap *index: faiss::IndexBinaryIDMap pointer. |
Output |
N/A |
Return value |
N/A |
Restrictions |
index must be a valid IndexBinaryIDMap pointer. The copied index resources are destroyed by the user. |