未验证 提交 a28df3eb 编写于 作者: Y Yibing Liu 提交者: GitHub

Fix the unstack layer (#15047)

test=develop
上级 b9fb03cf
...@@ -7943,7 +7943,7 @@ def unstack(x, axis=0, num=None): ...@@ -7943,7 +7943,7 @@ def unstack(x, axis=0, num=None):
num = x.shape[axis] num = x.shape[axis]
outs = [] outs = []
for _ in num: for _ in range(num):
outs.append(helper.create_variable_for_type_inference(x.dtype)) outs.append(helper.create_variable_for_type_inference(x.dtype))
helper.append_op( helper.append_op(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册