{'cpu', 'gpu'} String representing the device type
(default=0) The device id of the device, needed for GPU
(default=0) The device id of the device, needed for GPU
Return device type of current context.
Return device type of current context.
device_type
Constructing a context.