TensorBaseCopy
Function Usage
Memory copy function, which copies data between the host and device based on the memory location specified in MemoryData.
Prototype
static APP_ERROR TensorBaseCopy(TensorBase &dst, const TensorBase &src);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
dst |
Output |
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: TensorBase