diff --git a/paddle/infrt/dialect/print_ir.cc b/paddle/infrt/dialect/print_ir.cc index 5cfd16ee859438c891d6ccf77b97e663620e584c..a37df265955e70cdf735f251bc8853c7ad4fe831 100644 --- a/paddle/infrt/dialect/print_ir.cc +++ b/paddle/infrt/dialect/print_ir.cc @@ -14,12 +14,12 @@ #include #include #include -#include -#include #include #include #include #include +#include #include #include #include @@ -74,8 +74,8 @@ void printOperation(mlir::Operation *op, int indent) { if (!op->getAttrs().empty()) { printIndent(indent) << op->getAttrs().size() << " attributes:\n"; for (mlir::NamedAttribute attr : op->getAttrs()) { - printIndent(indent + 1) << "- {" << attr.first << " : " << attr.second - << "}\n"; + printIndent(indent + 1) << "- {" << attr.getName() << " : " + << attr.getValue() << "}\n"; } }