diff --git a/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp b/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp index 1b3ad0b39..dc9d9f2df 100644 --- a/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp +++ b/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp @@ -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(left_op)) { + // inPlace op + if (isa(left_op)) { continue; } if (find_f(same_ops, left_op)) {