提交 cb1e300f 编写于 作者: H HexToString

update http

上级 3880c04d
......@@ -34,10 +34,7 @@ test_reader = paddle.batch(
for data in test_reader():
new_data = np.zeros((1, 13)).astype("float32")
new_data[0] = data[0][0]
lst_data = []
for i in range(200):
lst_data.append(data[0][0])
fetch_map = client.predict(
feed={"x": lst_data}, fetch=fetch_list, batch=True)
feed={"x": new_data}, fetch=fetch_list, batch=True)
print(fetch_map)
break
......@@ -57,6 +57,7 @@ def data_bytes_number(datalist):
else:
raise ValueError(
"In the Function data_bytes_number(), data must be list.")
return total_bytes_number
class HttpClient(object):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册