fix googlenet scripts

This commit is contained in:
panfengfeng 2020-07-30 23:44:02 +08:00
parent 8943d5de34
commit 6ac99d4a0c
1 changed files with 8 additions and 2 deletions

View File

@ -41,5 +41,11 @@ mkdir ../train
cd ../train || exit
export CUDA_VISIBLE_DEVICES="$2"
mpirun -n $1 --allow-run-as-root \
python3 ${BASEPATH}/../train.py > train.log 2>&1 &
if [ $1 -gt 1 ]
then
mpirun -n $1 --allow-run-as-root \
python3 ${BASEPATH}/../train.py > train.log 2>&1 &
else
python3 ${BASEPATH}/../train.py > train.log 2>&1 &
fi