Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguoguo626807 committed Sep 19, 2023
1 parent 05c4023 commit df0dd36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paddle/fluid/pir/dialect/operator/ir/manual_op_vjp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ std::vector<std::vector<pir::OpResult>> AddNOp::Vjp(

VLOG(6) << "Prepare inputs of add_n_grad";

pir::CombineOp combine_op_obj =
op_obj.inputs().GetDefiningOp()->dyn_cast<pir::CombineOp>();
pir::CombineOp combine_op_obj = op_obj.inputs()
.dyn_cast<pir::OpResult>()
.owner()
->dyn_cast<pir::CombineOp>();
std::vector<Tensor> inputs;
for (size_t idx = 0; idx < combine_op_obj.inputs().size(); idx++) {
inputs.emplace_back(
Expand Down

0 comments on commit df0dd36

Please sign in to comment.