ToDevice
Function Usage
Deploys the tensor object to the memory on the device.
Prototype
APP_ERROR ToDevice(int32_t deviceId);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
deviceId |
Input |
Device ID |
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