copyFrom

API definition

void copyFrom(const faiss::IndexIVF* index);

Function

Copies AscendIndexIVF to the Ascend based on an existing index and retains the resource configuration on the device of the original AscendIndex.

Input

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

Output

N/A

Return value

N/A

Restrictions

  • index must be a valid CPU Index pointer.
  • The value of probe of index must be greater than 0 and less than or equal to nlist.