From 30037fc4d26c0b1cb72c54e1aa8e7240e0615f3a Mon Sep 17 00:00:00 2001 From: tink2123 Date: Tue, 15 Mar 2022 06:49:27 +0000 Subject: [PATCH] polish tipc serving --- deploy/pdserving/web_service_rec.py | 3 +-- test_tipc/test_serving.sh | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/deploy/pdserving/web_service_rec.py b/deploy/pdserving/web_service_rec.py index 25d8962f..c4720d08 100644 --- a/deploy/pdserving/web_service_rec.py +++ b/deploy/pdserving/web_service_rec.py @@ -78,11 +78,10 @@ class RecOp(Op): class OcrService(WebService): def get_pipeline_response(self, read_op): rec_op = RecOp(name="rec", input_ops=[read_op]) - print("rec op:", rec_op) return rec_op uci_service = OcrService(name="ocr") FLAGS = ArgsParser().parse_args() uci_service.prepare_pipeline_config(yml_dict=FLAGS.conf_dict) -uci_service.run_service() \ No newline at end of file +uci_service.run_service() diff --git a/test_tipc/test_serving.sh b/test_tipc/test_serving.sh index fa698a43..260b252f 100644 --- a/test_tipc/test_serving.sh +++ b/test_tipc/test_serving.sh @@ -58,11 +58,9 @@ function func_serving(){ trans_model_cmd="${python_list[0]} ${trans_model_py} ${set_dirname} ${set_model_filename} ${set_params_filename} ${set_serving_server} ${set_serving_client}" eval $trans_model_cmd cd ${serving_dir_value} - echo $PWD unset https_proxy unset http_proxy for python in ${python_list[*]}; do - echo ${python} if [ ${python} = "cpp" ]; then for use_gpu in ${web_use_gpu_list[*]}; do if [ ${use_gpu} = "null" ]; then @@ -93,9 +91,7 @@ function func_serving(){ done else # python serving - echo ${web_use_gpu_list[*]} for use_gpu in ${web_use_gpu_list[*]}; do - echo ${ues_gpu} if [ ${use_gpu} = "null" ]; then for use_mkldnn in ${web_use_mkldnn_list[*]}; do for threads in ${web_cpu_threads_list[*]}; do -- GitLab