未验证 提交 a54ec5a8 编写于 作者: 0 0x45f 提交者: GitHub

Fix `parent_block.var(name)` error in static mode (#41162)

上级 a8be9b6d
......@@ -897,7 +897,9 @@ class StaticRNN(object):
if in_var_name not in local_inputs:
params.append(in_var_name)
parameters = [parent_block.var(name) for name in set(params)]
parameters = [
parent_block._find_var_recursive(name) for name in set(params)
]
step_scope = parent_block.create_var(
type=core.VarDesc.VarType.STEP_SCOPES)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册