未验证 提交 62ae5f62 编写于 作者: T TeFeng Chen 提交者: GitHub

build_cinn_pass: fix bug because of output control var (#39782)

上级 e89bf25b
......@@ -375,7 +375,7 @@ std::unique_ptr<Graph> CreateNewSubGraph(const GraphNodeSet& cluster,
const std::unordered_set<std::string>& ignore_names) {
auto result = std::make_unique<std::vector<std::string>>();
for (auto* node : nodes) {
if (ignore_names.count(node->Name())) {
if (!node->Var() || ignore_names.count(node->Name())) {
continue;
}
result->emplace_back(node->Name());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册