Skip to content

Commit

Permalink
- woops, revert pretty printer change
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Jun 9, 2022
1 parent db09ba6 commit feea55c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/printer/relay_text_printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,12 @@ Doc RelayTextPrinter::PrintOptionalInfo(const Expr& expr) {
// default annotations
if (annotate_ == nullptr) {
if ((expr.as<ConstantNode>() || expr.as<CallNode>() || expr.as<VarNode>() ||
expr.as<GlobalVarNode>() || expr.as<FunctionNode>() || expr.as<TupleNode>() ||
expr.as<TupleGetItemNode>()) &&
expr.as<FunctionNode>() || expr.as<TupleNode>() || expr.as<TupleGetItemNode>()) &&
(expr->checked_type_.defined() || expr->span.defined())) {
doc << " /*";
if (expr->checked_type_.defined()) {
doc << " ty=" << Print(expr->checked_type());
}
if (!expr->virtual_device()->IsFullyUnconstrained()) {
doc << " virtual_device=" << Print(expr->virtual_device());
}
if (expr->span.defined()) {
doc << " span=" << PrintSpan(expr->span);
}
Expand Down

0 comments on commit feea55c

Please sign in to comment.