mindspore.run_check
===================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/r2.2/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。