CopyBetweenHostDevice
Function Usage
Copies the src object to the dst object. The two tensor buffers are located on the host and device sides, respectively.
Prototype
static APP_ERROR CopyBetweenHostDevice(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. |
Parent topic: TensorBuffer