未验证 提交 832d6516 编写于 作者: H hong 提交者: GitHub

[NewIR] Fix new ir cross op (#55222)

* fix exception bug

* update

* fix attribute translator bug

* remove usless code
上级 35b72e87
......@@ -116,6 +116,13 @@ class OpNameNormalizer {
std::string GetLegacyAttrName(const std::string& op_type,
const std::string& arg_name) {
size_t type_pos = op_type.find(kPhiGradSuffix);
if (type_pos != std::string::npos) {
std::string legacy_name =
this->GetLegacyAttrName(op_type.substr(0, type_pos), arg_name);
return legacy_name;
}
if (op_arg_name_mappings.find(op_type) == op_arg_name_mappings.end()) {
VLOG(10) << "[" << op_type << "] not found";
return arg_name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册