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

Attributes

context

Context to which this backend belongs.

Returns

Context object.

Return type

Context

name

Backend name.

Returns

Backend name.

Return type

str