chainer.cuda.get_device_from_id(device_id)[source]

整数のIDからデバイスを取得する。

 

Parameters: device_id (int or None) – この関数が返すデバイスの ID