提交 4d579f3f 编写于 作者: B barrierye

warm up in cube test example

上级 2b813811
...@@ -262,7 +262,7 @@ function python_run_criteo_ctr_with_cube() { ...@@ -262,7 +262,7 @@ function python_run_criteo_ctr_with_cube() {
python test_server_gpu.py ctr_serving_model_kv & python test_server_gpu.py ctr_serving_model_kv &
sleep 5 sleep 5
# for warm up # for warm up
python test_client.py ctr_client_conf/serving_client_conf.prototxt ./ut_data > /dev/null python test_client.py ctr_client_conf/serving_client_conf.prototxt ./ut_data > /dev/null || true
check_cmd "python test_client.py ctr_client_conf/serving_client_conf.prototxt ./ut_data >score" check_cmd "python test_client.py ctr_client_conf/serving_client_conf.prototxt ./ut_data >score"
tail -n 2 score | awk 'NR==1' tail -n 2 score | awk 'NR==1'
AUC=$(tail -n 2 score | awk 'NR==1') AUC=$(tail -n 2 score | awk 'NR==1')
...@@ -520,8 +520,8 @@ function python_test_grpc_impl() { ...@@ -520,8 +520,8 @@ function python_test_grpc_impl() {
check_cmd "python test_asyn_client.py > /dev/null" check_cmd "python test_asyn_client.py > /dev/null"
check_cmd "python test_general_pb_client.py > /dev/null" check_cmd "python test_general_pb_client.py > /dev/null"
check_cmd "python test_list_input_client.py > /dev/null" check_cmd "python test_list_input_client.py > /dev/null"
check_cmd "python test_timeout_client.py > /dev/null"
check_cmd "python test_batch_client.py > /dev/null" check_cmd "python test_batch_client.py > /dev/null"
check_cmd "python test_timeout_client.py > /dev/null"
kill_server_process kill_server_process
check_cmd "python test_server.py uci_housing_model > /dev/null &" check_cmd "python test_server.py uci_housing_model > /dev/null &"
...@@ -530,8 +530,8 @@ function python_test_grpc_impl() { ...@@ -530,8 +530,8 @@ function python_test_grpc_impl() {
check_cmd "python test_asyn_client.py > /dev/null" check_cmd "python test_asyn_client.py > /dev/null"
check_cmd "python test_general_pb_client.py > /dev/null" check_cmd "python test_general_pb_client.py > /dev/null"
check_cmd "python test_list_input_client.py > /dev/null" check_cmd "python test_list_input_client.py > /dev/null"
check_cmd "python test_timeout_client.py > /dev/null"
check_cmd "python test_batch_client.py > /dev/null" check_cmd "python test_batch_client.py > /dev/null"
check_cmd "python test_timeout_client.py > /dev/null"
kill_server_process kill_server_process
cd .. # pwd: /Serving/python/examples/grpc_impl_example cd .. # pwd: /Serving/python/examples/grpc_impl_example
...@@ -550,8 +550,8 @@ function python_test_grpc_impl() { ...@@ -550,8 +550,8 @@ function python_test_grpc_impl() {
check_cmd "mkdir work_dir1 && cp cube/conf/cube.conf ./work_dir1/" 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 & python test_server.py ctr_serving_model_kv ctr_client_conf/serving_client_conf.prototxt &
sleep 5 sleep 5
# warm up # for warm up
python test_client.py ./ut_data &> /dev/null python test_client.py ./ut_data &> /dev/null || true
check_cmd "python test_client.py ./ut_data >score" check_cmd "python test_client.py ./ut_data >score"
tail -n 2 score | awk 'NR==1' tail -n 2 score | awk 'NR==1'
AUC=$(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.
先完成此消息的编辑!
想要评论请 注册