From 5eab7dabba9adb3c3390906a2d24bca7028e9e72 Mon Sep 17 00:00:00 2001 From: Shang Zhizhou Date: Tue, 18 Jan 2022 10:59:57 +0800 Subject: [PATCH] fix build bug (#38997) * fix build bug * fix code style --- paddle/infrt/dialect/print_ir.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/infrt/dialect/print_ir.cc b/paddle/infrt/dialect/print_ir.cc index 5cfd16ee859..a37df265955 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"; } } -- GitLab