copyFrom

API definition

void copyFrom(const faiss::PCAMatrix*cpuTrans)

Function

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

Input

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

Output

N/A

Return value

N/A

Restrictions

The cpuTrans must be a valid PCAMatrix pointer.