Defines the memory copy function, which copies data between the host and device based on the memory location specified in MemoryData.
1 | static APP_ERROR TensorBase::TensorBaseCopy(TensorBase &dst, const TensorBase &src); |
Parameter |
Input/Output |
Description |
|---|---|---|
dst |
Output |
Destination memory after the copy. |
src |
Input |
Source memory to be copied. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |