未验证 提交 473db814 编写于 作者: H huzhiqiang 提交者: GitHub

[Framework]Remove `op_callstack` attribute from model file #4042

上级 8776f751
......@@ -155,8 +155,12 @@ void OpAttrsAnyToCpp(const OpDescType &any_desc, cpp::OpDesc *cpp_desc) {
};
for (const auto &attr_name : any_desc.AttrNames()) {
auto type = any_desc.GetAttrType(attr_name);
set_attr(attr_name, type);
// note: since `op_callstack` attribute has no effect on inference process,
// we will not load it into op_desc.
if (attr_name != "op_callstack") {
auto type = any_desc.GetAttrType(attr_name);
set_attr(attr_name, type);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册