mindspore.device_context.ascend.is_available

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

Returns whether 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