Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #187 from Jackwaterveg/CICE_update
Browse files Browse the repository at this point in the history
fix bug of test.sh
  • Loading branch information
yt605155624 authored Sep 29, 2021
2 parents bc36816 + 09a6a0d commit 092e108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ else
if [ ${#gpu} -le 2 ];then # train with cpu or single gpu
cmd="${python} ${run_train} "
elif [ ${#gpu} -le 15 ];then # train with multi-gpu
gsu=${gru//,/ }
gsu=${gpu//,/ }
nump=`echo $gsu | wc -w`
cmd="${python} ${run_train} --nproc=$nump"
cmd="${python} ${run_train} --nprocs=$nump"
else # train with multi-machine
cmd="${python} -m paddle.distributed.launch --ips=${ips} --gpus=${gpu} ${run_train} ${set_save_model} ${set_pretrain} ${set_epoch} ${set_autocast} ${set_batchsize} ${set_train_params1}"
fi
Expand Down

0 comments on commit 092e108

Please sign in to comment.