chainer.cuda.get_device_from_id

chainer.cuda.get_device_from_id(device_id)[source]

Gets the device from an ID integer.

Parameters:device_id (int or None) – The ID of the device which this function returns.