From ee72ff4b67846890b6d8e807280f1d152fd16cf7 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Sat, 9 May 2020 14:26:10 +0800 Subject: [PATCH] separate different model log --- python/examples/bert/benchmark.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/examples/bert/benchmark.sh b/python/examples/bert/benchmark.sh index 2965b6f3..960ad48c 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 -- GitLab