Migration Operations
- Create an Ascend training project.
- Click New Project on the welcome page or choose on the menu bar. The New Project window is displayed. Set corresponding parameters and click Next. See Figure 1.
- CANN Version: CANN package version. If the version is not identified or you want to change the version, click Change and select the Ascend-CANN-Toolkit installation path (to the version number or latest level) in the dialog box displayed.
- Templates: framework project. Select PyTorch Project.
- Configure related information and click Create. See Figure 2.
- Project name: project name, which can be customized.
- Project location: project directory. By default, the project is created in ~/MindstudioProjects.
- Click New Project on the welcome page or choose on the menu bar. The New Project window is displayed. Set corresponding parameters and click Next. See Figure 1.
- Go to the project page and click
(PyTorch GPU2Ascend) on the toolbar. - Go to the PyTorch GPU2Ascend parameter configuration page and set the parameters as shown in Figure 3 (conversion from a single-device GPU to a single-device NPU is used as an example).
- PyTorch Version: PyTorch version.
- Input Path: Path of the script file to be migrated.
- Output Path: Output path of the script after migration.
- After setting the parameters, click Transplant to start the migration.
If "Transplant success!" is displayed, the migration is successful.
2023-07-14 12:47:09 [INFO] [Progress:100.00%] MsFmkTransplt run success, welcome to the next use. 2023-07-14 12:47:09 [INFO] The detailed transplant result files are in the output path you defined, the relative path is pytorch-cifar100_msft. 2023-07-14 12:47:09 +---------------------+------------+ 2023-07-14 12:47:09 | files | statistics | 2023-07-14 12:47:09 +---------------------+------------+ 2023-07-14 12:47:09 | cuda_op_list.csv | 0 | 2023-07-14 12:47:09 | unsupported_api.csv | 0 | 2023-07-14 12:47:09 | unknown_api.csv | 3 | 2023-07-14 12:47:09 | change_list.csv | 41 | 2023-07-14 12:47:09 +---------------------+------------+ 2023-07-14 12:47:09 Transplant success!
Parent topic: Migration Tool (PyTorch GPU2Ascend)


