fix issue of actions dag split

This commit is contained in:
taiyang-li 2024-02-20 18:36:07 +08:00
parent b216223aa0
commit 1f20030df0

View File

@ -1713,6 +1713,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)
{