PyTorchModels \
- ImageClassification \
- NLP \
- Detection \
- Segmentation
Test is performed in docker for this two platform.
- init Ascend toolkit by
source /usr/local/Ascend/ascend-toolkit/set_env.sh
- Replace the right paltform name in env script and init platform env variable by
source env.sh
- Add our
usercustomize.py
path to PYTHONPATH byexport PYTHONPATH=$PYTHONPATH:{YOUR_REPO_PATH}
- All is ready! Let's test our models training in Ascend platform by the following command:
nohup bash run_train_all.sh >> output.log 2>&1 &
- Please create a sitecustomize.py file in your python site-packages folder, and add the following code:
import site site.ENABLE_USER_SITE = True
- Replace the right paltform name in env script and and init platform env variable by
source env.sh
- Add our
usercustomize.py
path to PYTHONPATH byexport PYTHONPATH=$PYTHONPATH:{YOUR_REPO_PATH}
- All is ready! Let's test our models training in Ascend platform by the following command:
nohup bash run_train_all.sh >> output.log 2>&1 &