Skip to content

Commit

Permalink
fix cond typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 committed Mar 10, 2024
1 parent e80fd93 commit f91f250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/fluid/pir/transforms/sub_graph_detector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,10 @@ std::unordered_set<pir::Operation*> GetUpstreamOpsAfterPosition(
for (auto value : op->operands_source()) {
if (!value || !value.defining_op()) continue;
pir::Operation* defining_op = value.defining_op();
if (visited_ops->count(defining_op) || !IsInBlock(defining_op, block))
continue;
if (visited_ops->count(defining_op)) continue;
visited_ops->insert(defining_op);
if (!IncrementalOrder()(defining_op, position_op)) continue;
if (!IsInBlock(defining_op, block)) continue;
if (IncrementalOrder()(defining_op, position_op)) continue;

ops.insert(defining_op);
auto recursive_ops = GetUpstreamOpsAfterPosition(
Expand Down

0 comments on commit f91f250

Please sign in to comment.