From 8e16b25f482e49f99f7979e960ac8c7578c46185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B5=AA?= Date: Tue, 12 Apr 2022 02:27:00 +0000 Subject: [PATCH 1/5] update PyTorch/contrib/cv/classification/MobileNet/test/train_full_1p.sh. --- .../contrib/cv/classification/MobileNet/test/train_full_1p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/contrib/cv/classification/MobileNet/test/train_full_1p.sh b/PyTorch/contrib/cv/classification/MobileNet/test/train_full_1p.sh index 9e96f28b95..55b11273c9 100755 --- a/PyTorch/contrib/cv/classification/MobileNet/test/train_full_1p.sh +++ b/PyTorch/contrib/cv/classification/MobileNet/test/train_full_1p.sh @@ -12,7 +12,7 @@ export RANK_SIZE=1 data_path="" # 训练epoch -train_epochs=1 +train_epochs=90 # 指定训练所使用的npu device卡id device_id=0 # 学习率 -- Gitee From 94a578c5c975880a9fd4f246a251b246fdf2a1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B5=AA?= Date: Tue, 12 Apr 2022 02:31:30 +0000 Subject: [PATCH 2/5] update PyTorch/contrib/cv/classification/MobileNet/test/train_full_8p.sh. --- .../contrib/cv/classification/MobileNet/test/train_full_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/contrib/cv/classification/MobileNet/test/train_full_8p.sh b/PyTorch/contrib/cv/classification/MobileNet/test/train_full_8p.sh index c2bf7064cc..41889c650f 100755 --- a/PyTorch/contrib/cv/classification/MobileNet/test/train_full_8p.sh +++ b/PyTorch/contrib/cv/classification/MobileNet/test/train_full_8p.sh @@ -75,7 +75,7 @@ KERNEL_NUM=$(($(nproc)/8)) PID_START=$((KERNEL_NUM * RANK_ID)) PID_END=$((PID_START + KERNEL_NUM - 1)) -taskset -c $PID_START-$PID_END python mobilenet.py \ +taskset -c $PID_START-$PID_END python3.7 mobilenet.py \ --data=${data_path} \ --batch_size=${batch_size} \ --ngpu 8 \ -- Gitee From 1edd069f9295619a8be331ff4db5efcd78b2ed51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B5=AA?= Date: Tue, 12 Apr 2022 02:32:15 +0000 Subject: [PATCH 3/5] update PyTorch/contrib/cv/classification/MobileNet/test/train_performance_1p.sh. --- .../cv/classification/MobileNet/test/train_performance_1p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_1p.sh b/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_1p.sh index 0d21e2cdd7..b790357f84 100755 --- a/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_1p.sh +++ b/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_1p.sh @@ -85,7 +85,7 @@ python3.7 mobilenet.py \ --epochs=${train_epochs} \ -j $(($(nproc))) \ --lr=${learning_rate} \ - --device_id={ASCEND_DEVICE_ID} > ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log 2>&1 & + --device_id=${ASCEND_DEVICE_ID} > ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log 2>&1 & wait -- Gitee From 1b67f5a2a3c41cc529502186c631178452c11335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B5=AA?= Date: Tue, 12 Apr 2022 02:32:50 +0000 Subject: [PATCH 4/5] update PyTorch/contrib/cv/classification/MobileNet/test/train_performance_8p.sh. --- .../cv/classification/MobileNet/test/train_performance_8p.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_8p.sh b/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_8p.sh index 8ab1d2e097..0d8120807b 100755 --- a/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_8p.sh +++ b/PyTorch/contrib/cv/classification/MobileNet/test/train_performance_8p.sh @@ -12,7 +12,7 @@ export RANK_SIZE=8 data_path="" # 训练epoch -train_epochs=90 +train_epochs=1 # 学习率 learning_rate=0.8 @@ -75,7 +75,7 @@ KERNEL_NUM=$(($(nproc)/8)) PID_START=$((KERNEL_NUM * RANK_ID)) PID_END=$((PID_START + KERNEL_NUM - 1)) -taskset -c $PID_START-$PID_END python mobilenet.py \ +taskset -c $PID_START-$PID_END python3.7 mobilenet.py \ --data=${data_path} \ --batch_size=${batch_size} \ --ngpu 8 \ -- Gitee From 411e8f6f031e88d0bb6ffd8c465f0c459645a03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B5=AA?= Date: Tue, 12 Apr 2022 02:33:24 +0000 Subject: [PATCH 5/5] update PyTorch/contrib/cv/classification/MobileNet/test/train_eval_8p.sh. --- .../contrib/cv/classification/MobileNet/test/train_eval_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/contrib/cv/classification/MobileNet/test/train_eval_8p.sh b/PyTorch/contrib/cv/classification/MobileNet/test/train_eval_8p.sh index 7601be3ffc..6fdbe525b0 100755 --- a/PyTorch/contrib/cv/classification/MobileNet/test/train_eval_8p.sh +++ b/PyTorch/contrib/cv/classification/MobileNet/test/train_eval_8p.sh @@ -75,7 +75,7 @@ do KERNEL_NUM=$(($(nproc)/8)) PID_START=$((KERNEL_NUM * RANK_ID)) PID_END=$((PID_START + KERNEL_NUM - 1)) -taskset -c $PID_START-$PID_END python mobilenet.py \ +taskset -c $PID_START-$PID_END python3.7 mobilenet.py \ --data=${data_path} \ -e \ --batch_size=${bach_size} \ -- Gitee