to_device

Function Usage

Moves an image to the device memory.

Prototype

1
to_device(deviceId: int)

Input Parameters

Parameter

Type

Description

deviceId

int

Device ID

Exception Throwing Interface

If the to_device function fails to call tensor, the runtime exception is thrown.