Skip to content

Commit

Permalink
[Debug][Werror]error: control reaches end of non-void function [-Werr…
Browse files Browse the repository at this point in the history
…or=return-type](#53326)
  • Loading branch information
engineer1109 authored Apr 26, 2023
1 parent b305629 commit 23e96bd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions paddle/fluid/prim/utils/static/composite_grad_desc_maker.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,6 @@ class CompositeGradOpMakerBase {
}
}
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(
Expand Down

0 comments on commit 23e96bd

Please sign in to comment.