未验证 提交 c0b10e6e 编写于 作者: S shangliang Xu 提交者: GitHub

[TIPC] fix benchmark scripts (#5207)

上级 253712ad
...@@ -91,13 +91,15 @@ profile_option="${profile_option_key}:${profile_option_params}" ...@@ -91,13 +91,15 @@ profile_option="${profile_option_key}:${profile_option_params}"
line_num=`expr $line_num + 1` line_num=`expr $line_num + 1`
flags_value=$(func_parser_value "${lines[line_num]}") flags_value=$(func_parser_value "${lines[line_num]}")
# set flags if [ ${flags_value} != "null" ];then
IFS=";" # set flags
flags_list=(${flags_value}) IFS=";"
for _flag in ${flags_list[*]}; do flags_list=(${flags_value})
cmd="export ${_flag}" for _flag in ${flags_list[*]}; do
eval $cmd cmd="export ${_flag}"
done eval $cmd
done
fi
# set log_name # set log_name
repo_name=$(get_repo_name ) repo_name=$(get_repo_name )
......
...@@ -54,4 +54,4 @@ batch_size:2 ...@@ -54,4 +54,4 @@ batch_size:2
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:2|8 ...@@ -54,4 +54,4 @@ batch_size:2|8
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:2|8 ...@@ -54,4 +54,4 @@ batch_size:2|8
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:2|8 ...@@ -54,4 +54,4 @@ batch_size:2|8
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:20|24 ...@@ -54,4 +54,4 @@ batch_size:20|24
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:64|160 ...@@ -54,4 +54,4 @@ batch_size:64|160
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:6|22 ...@@ -54,4 +54,4 @@ batch_size:6|22
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:4|14 ...@@ -54,4 +54,4 @@ batch_size:4|14
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
...@@ -54,4 +54,4 @@ batch_size:2|4 ...@@ -54,4 +54,4 @@ batch_size:2|4
fp_items:fp32|fp16 fp_items:fp32|fp16
epoch:1 epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile --profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096 flags:null
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册