mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
fix tipc ptq log
This commit is contained in:
parent
a3f09a8705
commit
8897aba3d0
@ -124,7 +124,7 @@ function func_inference() {
|
|||||||
eval $command
|
eval $command
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${_save_log_path}"
|
eval "cat ${_save_log_path}"
|
||||||
status_check $last_status "${command}" "${status_log}" "${model_name}"
|
status_check $last_status "${command}" "${status_log}" "${model_name}" "${_save_log_path}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
@ -146,7 +146,7 @@ function func_inference() {
|
|||||||
eval $command
|
eval $command
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${_save_log_path}"
|
eval "cat ${_save_log_path}"
|
||||||
status_check $last_status "${command}" "${status_log}" "${model_name}"
|
status_check $last_status "${command}" "${status_log}" "${model_name}" "${_save_log_path}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
@ -158,12 +158,13 @@ function func_inference() {
|
|||||||
|
|
||||||
# for kl_quant
|
# for kl_quant
|
||||||
if [ ${kl_quant_cmd_value} != "null" ] && [ ${kl_quant_cmd_value} != "False" ]; then
|
if [ ${kl_quant_cmd_value} != "null" ] && [ ${kl_quant_cmd_value} != "False" ]; then
|
||||||
|
_kl_log="${LOG_PATH}/export.log"
|
||||||
echo "kl_quant"
|
echo "kl_quant"
|
||||||
command="${python} ${kl_quant_cmd_value}"
|
command="${python} ${kl_quant_cmd_value} >${_kl_log} 2>&1"
|
||||||
echo ${command}
|
echo ${command}
|
||||||
eval $command
|
eval $command
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
status_check $last_status "${command}" "${status_log}" "${model_name}"
|
status_check $last_status "${command}" "${status_log}" "${model_name}" "${_kl_log}"
|
||||||
cd ${infer_model_dir_list}/quant_post_static_model
|
cd ${infer_model_dir_list}/quant_post_static_model
|
||||||
ln -s __model__ inference.pdmodel
|
ln -s __model__ inference.pdmodel
|
||||||
ln -s __params__ inference.pdiparams
|
ln -s __params__ inference.pdiparams
|
||||||
|
Loading…
x
Reference in New Issue
Block a user