-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_while_im_sleeping_perf.sh
48 lines (39 loc) · 1.14 KB
/
run_while_im_sleeping_perf.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
DEVICE=$(echo "${1:-cpu}" | awk '{print tolower($0)}')
if [[ "$DEVICE" != "cpu" && "$DEVICE" != "gpu" ]]; then
echo ERROR: First parameter should be either cpu or gpu. Exit.
exit 1
fi
filename=$(pwd)/perf_$(date +%Y%m%d)_${DEVICE}.log
# filename=$(pwd)/perf_$(date +%Y%m%d_%H%M%S)_${DEVICE}.log
: > $filename
cd a_mobilenetv2
echo 'a_mobilenetv2' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -
cd a_resnet50
echo 'a_resnet50' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -
cd a_ssdmobilenetv2_320x320
echo 'a_ssdmobilenetv2_320x320' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -
cd a_ssdresnet50v1_640x640
echo 'a_ssdresnet50v1_640x640' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -
cd a_smallbert
echo 'a_smallbert' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -
cd a_talkingheads
echo 'talking_heads' >> $filename
echo =============== >> $filename
bash exp_iterate.sh ${DEVICE} >> $filename
cd -