未验证 提交 ec6d5efe 编写于 作者: 王明冬 提交者: GitHub

enhance the attribute constraint for pass,test=develop (#33568)

上级 b7a54fc1
...@@ -75,9 +75,6 @@ AttrCompat& AttrCompat::IsLeftDefault() { ...@@ -75,9 +75,6 @@ AttrCompat& AttrCompat::IsLeftDefault() {
} }
bool AttrCompat::operator()(const OpDesc& op_desc) { bool AttrCompat::operator()(const OpDesc& op_desc) {
if (conditions_.empty()) {
return true;
}
if (!op_desc.HasAttr(attr_name_)) { if (!op_desc.HasAttr(attr_name_)) {
if (!optional_) { if (!optional_) {
LOG(WARNING) << "The non-optional Attr(" << attr_name_ << ") of Op (" LOG(WARNING) << "The non-optional Attr(" << attr_name_ << ") of Op ("
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册