{'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 which is used to specify the device and device type that will be utilized by the engine.