Project Conversion

MindStudio IDE allows you to convert a non-Ascend project into an Ascend project.

Procedure

  1. Import a project file.
    • On the MindStudio IDE welcome page, click Open, select the project to be imported, and click OK.
    • In the upper left corner of the MindStudio IDE project page, click the menu bar, choose File > Open... from the top menu bar or click on the toolbar, and select an existing project to open it.

    If a project has code risks, the trust window is displayed when you open the project.

    • If the project source code is trusted and secure, click Trust Project. (You can select Trust projects in <workspace_directory> to trust all projects in the directory.)
    • If the project is not trusted and you only want to view the source code, click Preview in Safe Mode to preview the project in safe mode.
    • To cancel opening the project, click Don't Open.
  2. If there is already an active project in the window, a confirmation message is displayed.
    • Click This Window to open the newly created project in the current window.
    • Click New Window to open the newly created project in a new window.
  3. Choose Ascend > Convert To Ascend Project from the top menu bar, as shown in Figure 1.
    Figure 1 Project conversion
  4. The window shown in Figure 2 is displayed.
    Figure 2 Configuration of Ascend project conversion

    The parameters in the window are described as follows. Configure them based on the actual scenario.

    • Project Type: The options are Ascend Operator, Ascend Training, and Ascend App.
    • Framework/Sub Type: Table 1 and Table 2 show the available frameworks.
      Table 1 Available frameworks

      Project Type

      Framework

      Ascend Operator

      MindSpore

      PyTorch

      TensorFlow

      ONNX

      Ascend Training

      MindSpore

      PyTorch

      TensorFlow

      Table 2 Available sub-types

      Project Type

      Sub-type

      Ascend App

      Ascend ACL App

      Ascend Python ACL App

    • Project Desc: project description.
  5. Click OK. The project directory is displayed in a tree structure. The Ascend project with the .project file is successfully created (subject to the actual creation result).