335 Star 1.5K Fork 861

MindSpore / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
installation.md 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
宦晓玲 提交于 2023-07-21 16:52 . modify the md links 1.8

MindSpore XAI Installation

View Source On Gitee

System Requirements

  • OS: EulerOS-aarch64, CentOS-aarch64, CentOS-x86, Ubuntu-aarch64 or Ubuntu-x86
  • Device: Ascend 910 or GPU CUDA 10.1, 11.1
  • Python 3.7.5 or 3.9.0
  • MindSpore 1.7 or above

Installing by pip

Download the .whl package from MindSpore XAI download page and install with pip.

pip install mindspore_xai-{version}-py3-none-any.whl

Installing from Source Code

  1. Download source code from gitee.com:

    git clone https://gitee.com/mindspore/xai.git
  2. Install the dependency python modules:

    cd xai
    pip install -r requirements.txt
  3. Install the XAI module from source code:

    python setup.py install
  4. Optionally, you may build a .whl package for installation without step 3:

    bash package.sh
    pip install output/mindspore_xai-{version}-py3-none-any.whl

Installation Verification

Upon successful installation, importing 'mindspore_xai' module in Python will cause no error:

import mindspore_xai
print(mindspore_xai.__version__)
1
https://gitee.com/mindspore/docs.git
git@gitee.com:mindspore/docs.git
mindspore
docs
docs
r1.8

搜索帮助

53164aa7 5694891 3bd8fe86 5694891