未验证 提交 7c4efa5a 编写于 作者: X Xinger 提交者: GitHub

fix error: control reaches end of non-void function (#46312)

上级 55d31980
......@@ -387,8 +387,8 @@ std::vector<paddle::experimental::Tensor> RunBackward(
}
egr::Controller::Instance().ClearFinalBackwardHooks();
if (!is_general_grad) return {};
return GeneralGrad::Instance().GetResults(inputs, allow_unused, create_graph);
VLOG(3) << "Finish Backward";
return GeneralGrad::Instance().GetResults(inputs, allow_unused, create_graph);
}
void Backward(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册