From c484dd8ddcc85f4fbac8769715269268a6671fa6 Mon Sep 17 00:00:00 2001 From: Dongming Yang Date: Wed, 27 Jan 2021 18:27:21 +0800 Subject: [PATCH] fix ci --- src/printer/relay_text_printer.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/printer/relay_text_printer.cc b/src/printer/relay_text_printer.cc index a87b8716c143..cbee04f96096 100644 --- a/src/printer/relay_text_printer.cc +++ b/src/printer/relay_text_printer.cc @@ -827,9 +827,11 @@ std::vector RelayTextPrinter::PrintCallAttrs(const Attrs& attrs, const Expr } else { AttrPrinter printer(&docs, this); const_cast(attrs.operator->())->VisitNonDefaultAttrs(&printer); - // print call attr type key to restore expr for relay parser - std::string s = std::string(attrs->GetTypeKey()); - printer.Visit("attrs_type_key", &s); + if (!op_node) { + // print call attr type key to restore expr for relay parser + std::string s = std::string(attrs->GetTypeKey()); + printer.Visit("attrs_type_key", &s); + } return docs; } }