CopyBetweenDiffDevice

Function Usage

Copies the src object to the dst object on the device side. The device IDs of the two tensor buffers are different.

Prototype

static APP_ERROR CopyBetweenDiffDevice(TensorBuffer &dst, const TensorBuffer &src);

Parameter Description

Parameter

Input/Output

Description

dst

Input

Target memory after the copy.

src

Input

Source memory to be copied.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.