提交 5138c10c 编写于 作者: F fary86

fix bug of print scalar, not optimize depend when specializing

上级 0ca626ef
......@@ -648,9 +648,12 @@ AnfNodePtr FuncGraphSpecializer::BuildPossibleValueNode(const AnfNodePtr &origin
ValuePtr val = ival->BuildValue();
if (val->isa<AnyValue>()) {
return nullptr;
} else {
return BuildValueNode(val, ival);
}
// keep primitive 'depend' not to be optimized
if (IsPrimitiveCNode(origin_node, prim::kPrimDepend)) {
return nullptr;
}
return BuildValueNode(val, ival);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册