mindspore.run_check =================== .. 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/mindspore/mindspore.run_check.rst :alt: 查看源文件 .. py:function:: mindspore.run_check() 提供了便捷的API用以查询MindSpore的安装是否成功。如果检查返回结果中的版本与预期不符,请在run_check()之前使用 :func:`mindspore.set_context` 设置device_target。