提交 30037fc4 编写于 作者: T tink2123

polish tipc serving

上级 455a21ca
...@@ -78,7 +78,6 @@ class RecOp(Op): ...@@ -78,7 +78,6 @@ class RecOp(Op):
class OcrService(WebService): class OcrService(WebService):
def get_pipeline_response(self, read_op): def get_pipeline_response(self, read_op):
rec_op = RecOp(name="rec", input_ops=[read_op]) rec_op = RecOp(name="rec", input_ops=[read_op])
print("rec op:", rec_op)
return rec_op return rec_op
......
...@@ -58,11 +58,9 @@ function func_serving(){ ...@@ -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}" 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 eval $trans_model_cmd
cd ${serving_dir_value} cd ${serving_dir_value}
echo $PWD
unset https_proxy unset https_proxy
unset http_proxy unset http_proxy
for python in ${python_list[*]}; do for python in ${python_list[*]}; do
echo ${python}
if [ ${python} = "cpp" ]; then if [ ${python} = "cpp" ]; then
for use_gpu in ${web_use_gpu_list[*]}; do for use_gpu in ${web_use_gpu_list[*]}; do
if [ ${use_gpu} = "null" ]; then if [ ${use_gpu} = "null" ]; then
...@@ -93,9 +91,7 @@ function func_serving(){ ...@@ -93,9 +91,7 @@ function func_serving(){
done done
else else
# python serving # python serving
echo ${web_use_gpu_list[*]}
for use_gpu in ${web_use_gpu_list[*]}; do for use_gpu in ${web_use_gpu_list[*]}; do
echo ${ues_gpu}
if [ ${use_gpu} = "null" ]; then if [ ${use_gpu} = "null" ]; then
for use_mkldnn in ${web_use_mkldnn_list[*]}; do for use_mkldnn in ${web_use_mkldnn_list[*]}; do
for threads in ${web_cpu_threads_list[*]}; do for threads in ${web_cpu_threads_list[*]}; do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册