diff --git a/python/examples/bert/benchmark.sh b/python/examples/bert/benchmark.sh index 2965b6f3886092a192a42048d65e9be2983a9864..960ad48c44e86f44c4399792f1f4a664ef750ad8 100644 --- a/python/examples/bert/benchmark.sh +++ b/python/examples/bert/benchmark.sh @@ -19,11 +19,11 @@ do echo "thread num :" $thread_num echo "batch size :" $batch_size echo "=================Done====================" - echo "model name :$1" >> profile_log - echo "batch size :$batch_size" >> profile_log - $PYTHONROOT/bin/python ../util/show_profile.py profile $thread_num >> profile_log - tail -n 8 profile >> profile_log - echo "" >> profile_log + echo "model name :$1" >> profile_log_$1 + echo "batch size :$batch_size" >> profile_log_$1 + $PYTHONROOT/bin/python ../util/show_profile.py profile $thread_num >> profile_log_$1 + tail -n 8 profile >> profile_log_$1 + echo "" >> profile_log_$1 done done