未验证 提交 28795771 编写于 作者: L Leo Chen 提交者: GitHub

run recompute's real backward with amp disabled (#40042)

上级 1c4e3e5d
......@@ -183,6 +183,7 @@ class RecomputeFunction(PyLayer):
)
# actually backward
with paddle.amp.auto_cast(enable=False):
paddle.autograd.backward(forward_outputs_with_grad,
backward_inputs_with_grad)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册