提交 93a3ee96 编写于 作者: B barrierye

add grpc impl test

上级 fb06526c
......@@ -171,6 +171,12 @@ function python_test_fit_a_line() {
fi
setproxy # recover proxy state
kill_server_process
# test grpc impl
check_cmd "python -m paddle_serving_server.serve --model uci_housing_model --port 9393 --thread 4 --use_multilang> /dev/null &"
sleep 5 # wait for the server to start
check_cmd "python test_multilang_client.py uci_housing_client/serving_client_conf.prototxt > /dev/null"
kill_server_process
;;
GPU)
export CUDA_VISIBLE_DEVICES=0
......@@ -201,6 +207,12 @@ function python_test_fit_a_line() {
fi
setproxy # recover proxy state
kill_server_process
# test grpc impl
check_cmd "python -m paddle_serving_server_gpu.serve --model uci_housing_model --port 9393 --thread 4 --gpu_ids 0 --use_multilang> /dev/null &"
sleep 5 # wait for the server to start
check_cmd "python test_multilang_client.py uci_housing_client/serving_client_conf.prototxt > /dev/null"
kill_server_process
;;
*)
echo "error type"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册