Backend and Device

ChainerX adds a level of abstraction between the higher level array operations and the lower level computations and resource management. This abstraction is managed by the Backend and the Device classes. Native (CPU) and CUDA backends are two concrete implementations currently provided by ChainerX but the abstraction allows you to plug any backend into the framework.

Backend

chainerx.Backend

chainerx.get_backend

Device

chainerx.Device

chainerx.get_device

chainerx.get_default_device

chainerx.set_default_device

chainerx.using_device