@@ -41,9 +41,9 @@ Usage: $0 <count> <timeout>
41
41
EOF
42
42
}
43
43
44
- function nhwc_test () {
44
+ function resnet50_test () {
45
45
local CMD_RUN=" cd benchmarks/scripts/tf_cnn_benchmarks/ && python tf_cnn_benchmarks.py -data_format=NHWC --device cpu --batch_size=${BATCH_SIZE} --num_batches=${NUM_BATCHES} > result"
46
- info " Running NHWC Tensorflow test"
46
+ info " Running Resnet50 Tensorflow test"
47
47
for i in " ${containers[@]} " ; do
48
48
sudo -E " ${CTR_EXE} " t exec -d --exec-id " $( random_name) " " ${i} " sh -c " ${CMD_RUN} "
49
49
done
@@ -61,14 +61,14 @@ function nhwc_test() {
61
61
sudo -E " ${CTR_EXE} " t exec --exec-id " $( random_name) " " ${i} " sh -c " ${CMD_RESULT} " >> " ${tensorflow_file} "
62
62
done
63
63
64
- local nhwc_results =$( cat " ${tensorflow_file} " | grep " total images/sec" | cut -d " :" -f2 | sed -e ' s/^[ \t]*//' | tr ' \n' ' ,' | sed ' s/.$//' )
65
- local average_nhwc =$( echo " ${nhwc_results } " | sed " s/,/+/g;s/.*/(&)\/$NUM_CONTAINERS /g" | bc -l)
64
+ local resnet50_results =$( cat " ${tensorflow_file} " | grep " total images/sec" | cut -d " :" -f2 | sed -e ' s/^[ \t]*//' | tr ' \n' ' ,' | sed ' s/.$//' )
65
+ local average_resnet50 =$( echo " ${resnet50_results } " | sed " s/,/+/g;s/.*/(&)\/$NUM_CONTAINERS /g" | bc -l)
66
66
67
67
local json=" $( cat << EOF
68
68
{
69
- "NHWC ": {
70
- "Result": "${nhwc_results } ",
71
- "Average": "${average_nhwc } ",
69
+ "Resnet50 ": {
70
+ "Result": "${resnet50_results } ",
71
+ "Average": "${average_resnet50 } ",
72
72
"Units": "s"
73
73
}
74
74
}
@@ -158,7 +158,7 @@ function main() {
158
158
# Check that the requested number of containers are running
159
159
check_containers_are_up
160
160
161
- nhwc_test
161
+ resnet50_test
162
162
163
163
axelnet_test
164
164
0 commit comments