mindspore.device_context.ascend.device_count ============================================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/device_context/mindspore.device_context.ascend.device_count.rst :alt: 查看源文件 .. py:function:: mindspore.device_context.ascend.device_count() 查询可用的Ascend类型的设备数量。 返回: int,可用的Ascend类型的设备数量。