chainerx.Backend

class chainerx.Backend

Pluggable entity that abstracts various computing platforms.

A backend holds one or more Devices, each of which represents a physical computing unit.

Methods

get_device(index)

Returns a device specified by the given index.

Parameters

index (int) – Device index.

Returns

Device object.

Return type

Device

get_device_count()

Returns the number of devices available in this backend.

Returns

Number of devices.

Return type

int

__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

context

Context to which this backend belongs.

Returns

Context object.

Return type

Context

name

Backend name.

Returns

Backend name.

Return type

str