chainer.backend.ChainerxDevice¶
-
class
chainer.backend.ChainerxDevice(device)[source]¶ Device for ChainerX backend
Methods
-
__enter__()[source]¶ A dummy definition that simply raises RuntimeError.
chainer.using_device()should be used instead.
-
create_context()[source]¶ Returns a context manager in which the device is made current.
See also
chainer.using_device()calls this method internally.
-
send(arrays)[source]¶ Transfers given arrays to the device.
- Parameters
arrays – Array or arrays of NumPy, CuPy, or ChainerX.
- Returns
Transferred arrays.
Attributes
-
fallback_device¶
-
supported_array_types¶ Array types supported by the device.
- Returns
tuple of array types which the device’s module functions can handle.
-
xp¶ Array module corresponding to the device.
-