mindspore.device_context.ascend.is_available

View Source On AtomGit
mindspore.device_context.ascend.is_available()[source]

Returns whether the Ascend backend is available.

Returns

bool, whether the Ascend backend is available for this MindSpore package.

Examples

>>> import mindspore as ms
>>> print(ms.device_context.ascend.is_available())
True