a bash file for training
This commit is contained in:
parent
f70dfb0559
commit
07099654bd
16
AlphaGo/train.sh
Normal file
16
AlphaGo/train.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
GPU_play=(0)
|
||||||
|
GPU_train=(3,4,5,6)
|
||||||
|
str_play='python play.py --data_path=./data/ --save_path=./go/ --game=go &'
|
||||||
|
str_train='python model.py &'
|
||||||
|
play_each_GPU=4
|
||||||
|
|
||||||
|
$str_train
|
||||||
|
echo 'Start training'
|
||||||
|
for gpu in $GPU
|
||||||
|
do
|
||||||
|
export CUDA_VISIBLE_DEVICES=$gpu
|
||||||
|
for ((i=1;i<=$play_each_GPU;i++))
|
||||||
|
do
|
||||||
|
$str_play
|
||||||
|
done
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user