提交 358896bb 编写于 作者: D dongdaxiang

return None if batch_predict failed

上级 b5e5ad27
......@@ -215,6 +215,9 @@ class Client(object):
float_slot_batch, float_feed_names, int_slot_batch, int_feed_names,
fetch_names, result_batch, self.pid)
if res == -1:
return None
result_map_batch = []
result_map = {}
for i, name in enumerate(fetch_names):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册