From 330b0d5168756104e73e7d8e027236cf45fc0b12 Mon Sep 17 00:00:00 2001 From: barrierye Date: Sun, 21 Jun 2020 19:55:28 +0800 Subject: [PATCH] warm up in cube test example --- .../grpc_impl_example/criteo_ctr_with_cube/test_client.py | 1 - tools/serving_build.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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 3e701cfe..ffece54c 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 3d49004f..d75d646b 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') -- GitLab