diff --git a/python/examples/grpc_impl_example/criteo_ctr_with_cube/test_client.py b/python/examples/grpc_impl_example/criteo_ctr_with_cube/test_client.py index 3e701cfe3ae2897d9046f83f700aa6fcd6b25412..ffece54cbdc5c7120fb6ac53e14d110d8247da97 100755 --- a/python/examples/grpc_impl_example/criteo_ctr_with_cube/test_client.py +++ b/python/examples/grpc_impl_example/criteo_ctr_with_cube/test_client.py @@ -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 diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 3d49004f8914e272fea3e86c8e7d53fe748840b4..d75d646bd485fbe0abf3544cc40b60abe71161a9 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -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')