“05c4b7e16d6ecd343f0e379761cfd67ee2c7efd9”上不存在“develop/doc/api/v2/config/networks.html”
未验证 提交 24ba9ed4 编写于 作者: Z Zhou Wei 提交者: GitHub

fix that parameters'grad has grad var (#29408)

上级 4e19ce1d
......@@ -81,7 +81,7 @@ class VariableWrapper {
}
bool IsLeafGrad() const {
if (!HasGradVar() && !HasGradNode() && !OverridedStopGradient()) {
if (!HasGradNode() && !OverridedStopGradient()) {
return true;
}
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册