This commit is contained in:
李扬 2024-09-19 10:03:06 +08:00 committed by GitHub
commit 60a84e8b83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1856,6 +1856,10 @@ ActionsDAG::SplitResult ActionsDAG::split(std::unordered_set<const Node *> split
}
}
/// All input nodes are needed by split to make sure first DAG and initial DAG have equal inputs,
for (const auto * input: inputs)
data[input].needed_by_split_node = true;
/// DFS. Move nodes to one of the DAGs.
for (const auto & node : nodes)
{