提交 081e8404 编写于 作者: B barrierye

warm up in cube test example

上级 5a3de832
......@@ -22,7 +22,6 @@ from paddle_serving_client.metric import auc
client = Client()
client.connect(["127.0.0.1:9292"])
client.set_rpc_timeout_ms(10000)
batch = 1
buf_size = 100
......
......@@ -548,6 +548,8 @@ function python_test_grpc_impl() {
check_cmd "mkdir work_dir1 && cp cube/conf/cube.conf ./work_dir1/"
python test_server.py ctr_serving_model_kv ctr_client_conf/serving_client_conf.prototxt &
sleep 5
# warm up
python test_client.py ./ut_data &> /dev/null
check_cmd "python test_client.py ./ut_data >score"
tail -n 2 score | awk 'NR==1'
AUC=$(tail -n 2 score | awk 'NR==1')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册