未验证 提交 2b81d844 编写于 作者: C Chen Weihang 提交者: GitHub

Merge pull request #611 from chenwhql/book01_fix

Fix: update infer input variable
......@@ -116,7 +116,7 @@ test_data = test_reader().next()
test_x = numpy.array([data[0] for data in test_data]).astype("float32")
test_y = numpy.array([data[1] for data in test_data]).astype("float32")
results = inferencer.infer({'x': test_feat})
results = inferencer.infer({'x': test_x})
print("infer results: (House Price)")
for idx, val in enumerate(results[0]):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册