mindspore.device_context

The device_context encapsulates the interface for querying the number of devices with whether the currently specified backend is available.

Cpu Device Backend Management

Gpu Device Backend Management

Ascend Device Backend Management