提交 1001e582 编写于 作者: D dongdaxiang

fix batch size problem for test_client.py

上级 87c912d4
...@@ -31,4 +31,4 @@ for line in sys.stdin: ...@@ -31,4 +31,4 @@ for line in sys.stdin:
feed = {"words": word_ids} feed = {"words": word_ids}
fetch = ["acc", "cost", "prediction"] fetch = ["acc", "cost", "prediction"]
fetch_map = client.predict(feed=feed, fetch=fetch) fetch_map = client.predict(feed=feed, fetch=fetch)
print("{} {}".format(fetch_map["prediction"][1], label[0])) print("{} {}".format(fetch_map["prediction"][0][1], label[0]))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册