chainerx.Device

class chainerx.Device

Represents a physical computing unit.

Methods

synchronize()

Synchronizes the device.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

Attributes

backend

Backend to which this device belongs.

Returns

Backend object.

Return type

Backend

context

Context to which this device belongs.

Returns

Context object.

Return type

Context

index

Index of this device.

Returns

Index of this device.

Return type

int

name

Device name.

It is the backend name and the device index concatenated with a colon, e.g. native:0.

Returns

Device name.

Return type

str