Enabling Profiling in a Training Project
Perform the following operations in MindStudio.
- Choose on the menu bar, select the migrated training project, and click OK to import the project. See Figure 1.
- Modify the training script.
- Edit the train.py file to set the device for training and add the Profiling enabling code.
- To accelerate training and profile data collection, edit the global_settings.py file in the conf directory to set EPOCH to 1.
Figure 4 EPOCH setting
- Run the training script. For details, see "Training After Porting" in the Migration Tool Quick Start Sample-PyTorch GPU2Ascend.
Parent topic: Profiling (PyTorch Training)


