提交 72010b40 编写于 作者: B barrierye

bug fix

上级 36465c6c
...@@ -775,10 +775,10 @@ class GeneralPythonService( ...@@ -775,10 +775,10 @@ class GeneralPythonService(
resp.shape.append(inst.shape) resp.shape.append(inst.shape)
resp.type.append(inst.type) resp.type.append(inst.type)
elif channeldata.pbdata.type == ChannelDataType.CHANNEL_FUTURE.value: elif channeldata.pbdata.type == ChannelDataType.CHANNEL_FUTURE.value:
feed = channeldata.futures.result() feed = channeldata.future.result()
if channeldata.callback_func is not None: if channeldata.callback_func is not None:
feed = channeldata.callback_func(feed) feed = channeldata.callback_func(feed)
for name, var in feed: for name, var in feed.items():
resp.fetch_insts.append(var.tobytes()) resp.fetch_insts.append(var.tobytes())
resp.fetch_var_names.append(name) resp.fetch_var_names.append(name)
resp.shape.append( resp.shape.append(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册