jroesch commented on a change in pull request #6274:
URL: https://github.com/apache/incubator-tvm/pull/6274#discussion_r493092350
##########
File path: src/printer/relay_text_printer.cc
##########
@@ -522,10 +522,11 @@ Doc RelayTextPrinter::VisitExpr_(const MatchNode* op) {
Doc clause_doc;
clause_doc << PrintPattern(clause->lhs, false) << " => ";
Doc rhs_doc = PrintScope(clause->rhs);
- if (clause->rhs.as<LetNode>()) {
- // only add braces if there are multiple lines on the rhs
- rhs_doc = Doc::Brace("{", rhs_doc, "}");
- }
+ // TODO(@jroesch): This is unsound right now, and we need to revist it.
Review comment:
We need to open an issue, some of the printing doesn't fully match the
parser.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]