Moves an image to the device memory.
1
to_device(deviceId: int)
Parameter
Type
Description
deviceId
int
Device ID
If the to_device function fails to call tensor, the runtime exception is thrown.