提交 badb65a4 编写于 作者: T TeslaZhao

Update examples/pipeline/bert

上级 32715154
...@@ -44,8 +44,10 @@ class BertOp(Op): ...@@ -44,8 +44,10 @@ class BertOp(Op):
return feed_dict, False, None, "" return feed_dict, False, None, ""
def postprocess(self, input_dicts, fetch_dict, data_id, log_id): def postprocess(self, input_dicts, fetch_dict, data_id, log_id):
fetch_dict["pooled_output"] = str(fetch_dict["pooled_output"]) new_dict = {}
return fetch_dict, None, "" new_dict["pooled_output"] = str(fetch_dict["pooled_output"])
new_dict["sequence_output"] = str(fetch_dict["sequence_output"])
return new_dict, None, ""
class BertService(WebService): class BertService(WebService):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册