copyFrom

API Definition

void copyFrom(const faiss::IndexPreTransform *index)

Function

Copies AscendIndexPreTransform to the Ascend based on an existing index and retains the resource configuration on the NPU of the original AscendIndexPreTransform.

Input

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

Output

N/A

Return Value

N/A

Restrictions

The index must be a valid CPUindex pointer.