提交 ac53cc26 编写于 作者: B barrierye

recover client.connect() function && test=serving

上级 8cba69b4
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册