未验证 提交 eaea2bee 编写于 作者: W Weilong Wu 提交者: GitHub

[Eager, Performance optimization] fix assign interface under eager mode (#45688)

上级 6c737c67
......@@ -634,6 +634,8 @@ def assign(input, output=None):
if _non_static_mode():
if in_dygraph_mode() and output is None:
output = _C_ops.assign(input)
elif in_dygraph_mode() and output is not None:
_C_ops.assign_out_(input, output)
else:
if output is None:
if _in_legacy_dygraph():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册