From 01c8fc4570219359674db59a80701440994d56be Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Sun, 17 Oct 2021 15:56:06 +0800 Subject: [PATCH] add precision to infer log --- tests/test_python.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_python.sh b/tests/test_python.sh index 39b043b8..3a5718d0 100644 --- a/tests/test_python.sh +++ b/tests/test_python.sh @@ -143,7 +143,11 @@ function func_inference(){ fi for threads in ${cpu_threads_list[*]}; do for batch_size in ${batch_size_list[*]}; do - _save_log_path="${_log_path}/python_infer_cpu_usemkldnn_${use_mkldnn}_threads_${threads}_batchsize_${batch_size}.log" + precison="fp32" + if [ ${_flag_quant} = "True" ]; then + precision="int8" + fi + _save_log_path="${_log_path}/python_infer_cpu_usemkldnn_${use_mkldnn}_threads_${threads}_precision_${precision}_batchsize_${batch_size}.log" set_infer_data=$(func_set_params "${image_dir_key}" "${_img_dir}") set_benchmark=$(func_set_params "${benchmark_key}" "${benchmark_value}") set_batchsize=$(func_set_params "${batch_size_key}" "${batch_size}")