未验证 提交 492d43ef 编写于 作者: Z Zhou Wei 提交者: GitHub

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

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