Skip to content

Commit 5701d03

Browse files
electricliliespfk-beta
authored andcommitted
[BUGFIX] fix text printer when TVM_LOG_DEBUG is on (apache#10279)
1 parent ef824ad commit 5701d03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/printer/relay_text_printer.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,7 @@ Doc RelayTextPrinter::VisitExpr_(const CallNode* op) {
515515
for (const Expr& arg : op->args) {
516516
args.push_back(Print(arg));
517517
}
518-
#if TVM_LOG_DEBUG
519-
for (const Type& type_arg : op->type_args) {
520-
args.push_back(Print(type_arg));
521-
}
522-
#endif
518+
523519
for (const Doc& d : PrintCallAttrs(op->attrs, op->op)) {
524520
args.push_back(d);
525521
}

0 commit comments

Comments
 (0)