We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9db129f commit 5883eefCopy full SHA for 5883eef
paddle/fluid/pir/transforms/sub_graph_detector.cc
@@ -779,8 +779,10 @@ void SubgraphDetector::SubgraphFusion() {
779
}
780
781
782
- VLOG(4) << "Merge non-related subgraphs";
783
auto subgraph_list = GetSubgraphList();
+ VLOG(4) << "Merge non-related subgraphs (size=" << subgraph_list.size()
784
+ << ")";
785
+ if (subgraph_list.size() > 2048) return;
786
for (size_t i = 0; i < subgraph_list.size(); ++i) {
787
auto lhs = subgraph_list[i];
788
if (!lhs->substitute) continue;
0 commit comments