提交 b93eba6d 编写于 作者: B barrierye

add ecode in client resp

上级 0712a90a
......@@ -50,8 +50,8 @@ class PyClient(object):
req = self._pack_data_for_infer(feed)
resp = self._stub.inference(req)
if resp.ecode != 0:
raise Exception(resp.error_info)
fetch_map = {}
return {"ecode": resp.ecode, "error_info": resp.error_info}
fetch_map = {"ecode": resp.ecode}
for idx, name in enumerate(resp.fetch_var_names):
if name not in fetch:
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册