Skip to content

Commit

Permalink
Fix: exclude inPlaceOp in groupParallel
Browse files Browse the repository at this point in the history
Change-Id: I71cb8b01975c9bd8cd945314bff758110fdfeabc
  • Loading branch information
luluman committed Jan 28, 2024
1 parent fc934d2 commit dc061a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ struct CommonMatch : public RewritePattern {
auto users = value.getUsers();
for (auto left = users.begin(); left != users.end(); left++) {
auto left_op = *left;
if (isa<tpu::ReshapeOp>(left_op)) {
// inPlace op
if (isa<tpu::ReshapeOp, tpu::SliceOp, tpu::ConcatOp>(left_op)) {
continue;
}
if (find_f(same_ops, left_op)) {
Expand Down

0 comments on commit dc061a7

Please sign in to comment.