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

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

上级 8776f751
...@@ -155,9 +155,13 @@ void OpAttrsAnyToCpp(const OpDescType &any_desc, cpp::OpDesc *cpp_desc) { ...@@ -155,9 +155,13 @@ void OpAttrsAnyToCpp(const OpDescType &any_desc, cpp::OpDesc *cpp_desc) {
}; };
for (const auto &attr_name : any_desc.AttrNames()) { for (const auto &attr_name : any_desc.AttrNames()) {
// 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); auto type = any_desc.GetAttrType(attr_name);
set_attr(attr_name, type); set_attr(attr_name, type);
} }
}
} }
template <typename OpDescType> template <typename OpDescType>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册