From 75721dfa6bbc88a138db114c393540a86b808f8b Mon Sep 17 00:00:00 2001 From: barrierye Date: Mon, 23 Mar 2020 20:12:11 +0800 Subject: [PATCH] recover client.connect() function && test=serving --- python/examples/criteo_ctr_with_cube/test_client.py | 2 +- python/examples/imdb/benchmark.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/examples/criteo_ctr_with_cube/test_client.py b/python/examples/criteo_ctr_with_cube/test_client.py index bb667f88..de205ebc 100755 --- a/python/examples/criteo_ctr_with_cube/test_client.py +++ b/python/examples/criteo_ctr_with_cube/test_client.py @@ -22,7 +22,7 @@ from paddle_serving_client.metric import auc client = Client() client.load_client_config(sys.argv[1]) -client.connect(['127.0.0.1:9292']) +client.connect(["127.0.0.1:9292"]) batch = 1 buf_size = 100 diff --git a/python/examples/imdb/benchmark.py b/python/examples/imdb/benchmark.py index 7b5ec7eb..a734e80e 100644 --- a/python/examples/imdb/benchmark.py +++ b/python/examples/imdb/benchmark.py @@ -35,8 +35,7 @@ def single_func(idx, resource): if args.request == "rpc": client = Client() client.load_client_config(args.model) - client.add_variant("var1", [args.endpoint], 50) - client.connect() + client.connect([args.endpoint]) for i in range(1000): if args.batch_size == 1: word_ids, label = imdb_dataset.get_words_and_label(line) -- GitLab