未验证 提交 256c2c9c 编写于 作者: W wangguanzhong 提交者: GitHub

fix feed type in cpp_infer.py (#170)

上级 820a38b6
......@@ -220,7 +220,7 @@ def infer():
for i in range(10):
if conf['use_python_inference']:
outs = exe.run(infer_prog,
feed=[data_dict],
feed=data_dict,
fetch_list=fetch_targets,
return_numpy=False)
else:
......@@ -232,7 +232,7 @@ def infer():
for i in range(cnt):
if conf['use_python_inference']:
outs = exe.run(infer_prog,
feed=[data_dict],
feed=data_dict,
fetch_list=fetch_targets,
return_numpy=False)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册