From 72010b4006d42a04f172308e3c9a36fa1307bc66 Mon Sep 17 00:00:00 2001 From: barrierye Date: Fri, 12 Jun 2020 17:53:38 +0800 Subject: [PATCH] bug fix --- python/paddle_serving_server/pyserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle_serving_server/pyserver.py b/python/paddle_serving_server/pyserver.py index 216a2db1..70149bb2 100644 --- a/python/paddle_serving_server/pyserver.py +++ b/python/paddle_serving_server/pyserver.py @@ -775,10 +775,10 @@ class GeneralPythonService( resp.shape.append(inst.shape) resp.type.append(inst.type) elif channeldata.pbdata.type == ChannelDataType.CHANNEL_FUTURE.value: - feed = channeldata.futures.result() + feed = channeldata.future.result() if channeldata.callback_func is not None: feed = channeldata.callback_func(feed) - for name, var in feed: + for name, var in feed.items(): resp.fetch_insts.append(var.tobytes()) resp.fetch_var_names.append(name) resp.shape.append( -- GitLab