未验证 提交 aa6d2caf 编写于 作者: H huangjianhui 提交者: GitHub

Update pipeline_client.py

fix string_data to str_data
上级 ab49cf63
...@@ -108,7 +108,7 @@ class PipelineClient(object): ...@@ -108,7 +108,7 @@ class PipelineClient(object):
one_tensor.name = key one_tensor.name = key
if isinstance(value, str): if isinstance(value, str):
one_tensor.string_data.add(value) one_tensor.str_data.append(value)
one_tensor.elem_type = 12 #12 => string in proto one_tensor.elem_type = 12 #12 => string in proto
continue continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册