diff --git a/paddle/pir/src/core/ir_printer.cc b/paddle/pir/src/core/ir_printer.cc index de75d6d2fc6036..e2bc7757f9de46 100644 --- a/paddle/pir/src/core/ir_printer.cc +++ b/paddle/pir/src/core/ir_printer.cc @@ -279,6 +279,10 @@ void IrPrinter::PrintAttributeMap(Operation* op) { AttributeMap attributes = op->attributes(); std::map> order_attributes( attributes.begin(), attributes.end()); + + // Filter out the callstack attribute + order_attributes.erase("op_callstack"); + os << " {"; pir::detail::PrintInterleave(