未验证 提交 23e96bde 编写于 作者: E engineer1109 提交者: GitHub

[Debug][Werror]error: control reaches end of non-void function [-Werror=return-type](#53326)

上级 b305629c
...@@ -405,15 +405,6 @@ class CompositeGradOpMakerBase { ...@@ -405,15 +405,6 @@ class CompositeGradOpMakerBase {
} }
} }
return input_grads; return input_grads;
PADDLE_ENFORCE_LE(
var_names.size(),
1UL,
platform::errors::Unavailable(
"BUG from operator developer:"
" for input argument with a list of variables, "
" drop_empty_grad is not allowed because it makes"
" the correspondence bewteen a variable and its gradient"
" ambiguous."));
} }
std::vector<framework::VarDesc*> MultiOutputGrad( std::vector<framework::VarDesc*> MultiOutputGrad(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册