Prerequisites
Before using the X2MindSpore tool, make the following preparations:
Environment Setup
- Prepare a training server powered by Atlas training productss and install the corresponding driver and firmware.
- Install the Ascend-CANN-Toolkit. For details, see "Installing the Development Environment" in the CANN Software Installation Guide.
- Install MindStudio. For details, see "Installing MindStudio (Linux)" in the MindStudio Installation Guide.
- Install MindSpore. For details, see the MindSpore Installation Guide.
- Before using X2MindSpore for migration, install the following dependencies. If you use a non-root user to run the following commands, add --user to the end of each command.
pip3 install pandas # The pandas version must be 1.2.4 or later. pip3 install libcst pip3 install sklearn
Environment Variable Configuration
- Run the vi ~/.bashrc command in any directory as the running user to open the .bashrc file, and append the following content to the file (the default installation path of a non-root user is used as an example):
# Ascend-CANN-Toolkit environment variable. Change it to the actual path. source ~/Ascend/ascend-toolkit/set_env.sh
- Refer to Configuring Environment Variables to configure MindSpore environment variables.
- Run the :wq! command to save the file and exit.
- Run the source ~/.bashrc command for the modification to take effect immediately.
Parent topic: Migration Tool (X2MindSpore)