未验证 提交 fe264cfc 编写于 作者: Z zqw_1997 提交者: GitHub

should import flatten from paddle.utils (#51481)

上级 ef0eb526
......@@ -4156,7 +4156,7 @@ class Block:
)
else:
from paddle.fluid.dygraph.base import param_guard
from .layers.utils import flatten
from paddle.utils import flatten
def pass_stop_gradient(ins, outs):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册