to_device(deviceId)
Function Usage
Moves an image to the device memory.
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
deviceId |
int |
Device ID |
Exception Throwing Interface
If the to_device function fails to call the tensor, the runtime exception is thrown.
Parent topic: Image