Skip to content

Commit

Permalink
fix (#58414)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 authored Oct 26, 2023
1 parent 672752c commit 59b137d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions paddle/fluid/pir/transforms/pd_op_to_kernel_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -831,15 +831,6 @@ void HandleForWhileOp(
(*map_value_pair)[base_while_op.body_block()->argument(i)] = block_arg;
}

(*map_op_pair)[op_item] = new_while_op;

// only deal with single output
if (op_item->num_results() > 0) {
for (size_t i = 0; i < op_item->num_results(); ++i) {
(*map_value_pair)[op_item->result(i)] = new_while_op->result(i);
}
}

// process body block
ProcessBlock(place,
base_while_op.body_block(),
Expand Down

0 comments on commit 59b137d

Please sign in to comment.