copyFrom

API Definition

void copyFrom(const faiss::LinearTransform *cpuTrans)

Function

Copies AscendLienarTransform to the Ascend based on the LinearTransform on the CPU. The current base library of AscendLinearTransform is cleared, and the original resource configuration on the NPU of AscendLinearTransform remains unchanged.

Input

const faiss::LinearTransform *cpuTrans: LinearTransform on the CPU.

Output

N/A

Return Value

N/A

Restrictions

The cpuTrans must be a valid LinearTransform pointer.