.run_ce.sh 392 字节
Newer Older
G
guochaorong 已提交
1 2 3 4 5 6 7 8
#!/bin/bash

export MKL_NUM_THREADS=1
export OMP_NUM_THREADS=1

cudaid=${language_model:=0} # use 0-th card as default
export CUDA_VISIBLE_DEVICES=$cudaid

G
guochaorong 已提交
9
FLAGS_benchmark=true  python train.py --enable_ce | python _ce.py
G
guochaorong 已提交
10

G
guochaorong 已提交
11
cudaid=${language_model_m:=0,1,2,3} # use 0,1,2,3 card as default
G
guochaorong 已提交
12 13
export CUDA_VISIBLE_DEVICES=$cudaid

G
guochaorong 已提交
14
FLAGS_benchmark=true  python train.py --enable_ce | python _ce.py