提交 69b53bc9 编写于 作者: G gaotingquan 提交者: Tingquan Gao

tipc: modify the statistical range of log

the ips is unstable in the first 50 iter when training lite modle.
上级 ad99540b
...@@ -201,13 +201,15 @@ for batch_size in ${batch_size_list[*]}; do ...@@ -201,13 +201,15 @@ for batch_size in ${batch_size_list[*]}; do
cd .. cd ..
else else
cd dataset/ILSVRC2012 cd dataset/ILSVRC2012
train_list_length=`cat train_list.txt | wc -l` val_list_length=`cat val_list.txt | wc -l`
copy_num=`echo $[25*10*$total_batch_size/$train_list_length]` copy_num=`echo $[25*10*$total_batch_size/$val_list_length]`
rm -rf train_list.txt
if [[ $copy_num -gt 1 ]];then if [[ $copy_num -gt 1 ]];then
rm -rf train_list.txt
for ((i=1; i <=$copy_num; i++));do for ((i=1; i <=$copy_num; i++));do
cat val_list.txt >> train_list.txt cat val_list.txt >> train_list.txt
done done
else
ln -s val_list.txt train_list.txt
fi fi
cd ../../ cd ../../
fi fi
...@@ -251,7 +253,7 @@ for batch_size in ${batch_size_list[*]}; do ...@@ -251,7 +253,7 @@ for batch_size in ${batch_size_list[*]}; do
--run_mode ${run_mode} \ --run_mode ${run_mode} \
--fp_item ${precision} \ --fp_item ${precision} \
--keyword ips: \ --keyword ips: \
--skip_steps 2 \ --skip_steps 100 \
--device_num ${device_num} \ --device_num ${device_num} \
--speed_unit samples/s \ --speed_unit samples/s \
--convergence_key loss: " --convergence_key loss: "
...@@ -287,7 +289,7 @@ for batch_size in ${batch_size_list[*]}; do ...@@ -287,7 +289,7 @@ for batch_size in ${batch_size_list[*]}; do
--run_mode ${run_mode} \ --run_mode ${run_mode} \
--fp_item ${precision} \ --fp_item ${precision} \
--keyword ips: \ --keyword ips: \
--skip_steps 2 \ --skip_steps 100 \
--device_num ${device_num} \ --device_num ${device_num} \
--speed_unit images/s \ --speed_unit images/s \
--convergence_key loss: " --convergence_key loss: "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册