-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrepeat.sh
More file actions
33 lines (23 loc) · 700 Bytes
/
Copy pathrepeat.sh
File metadata and controls
33 lines (23 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
start_time=`date +%Y%m%d%H%M%S`
echo "start ${start_time}--------------------------------------------------"
export CUDA_VISIBLE_DEVICES=${gpu_card}
export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/cuda-10.0/bin:$PATH"
export LANG="zh_CN.UTF-8"
CUR_DIR=`pwd`
ROOT=${CUR_DIR}
export PYTHONPATH=${ROOT}:${PYTHONPATH}
seads=(776 42 210 121 783 694 295 946 107 918)
OLD_IFS="$IFS"
IFS=","
repeats=($1)
shift
IFS="$OLD_IFS"
end=`expr ${#repeats[*]} - 1`
for index in `seq 0 ${end}`
do
${python} $@ --gpu_id ${gpu_card} --seed ${seads[${index}]} --repeat ${repeats[${index}]}
done
end_time=`date +%Y%m%d%H%M%S`
echo ${end_time}