junrushao1994 commented on a change in pull request #6364:
URL: https://github.com/apache/incubator-tvm/pull/6364#discussion_r480271028
##########
File path: src/printer/relay_text_printer.cc
##########
@@ -330,6 +330,14 @@ Doc RelayTextPrinter::VisitExpr_(const ConstantNode* op) {
return ScalarLiteral(dtype, static_cast<const
uint8_t*>(op->data->data)[0]);
}
}
+ const PackedFunc* fprint = runtime::Registry::Get("relay._constant_text");
Review comment:
I think it is a global function that third party can plug in and
customize the printing for constants
----------------------------------------------------------------
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]