shingjan commented on a change in pull request #9680:
URL: https://github.com/apache/tvm/pull/9680#discussion_r766277783
##########
File path: src/printer/tvmscript_printer.cc
##########
@@ -1220,6 +1300,19 @@ Doc TVMScriptPrinter::PrintPrimFunc(const PrimFunc&
primFunc) {
std::vector<Doc> params;
for (const auto& param : op->params) {
var_not_in_headers_.insert(param.get());
+ auto it = op->buffer_map.find(param);
+ // check if this param is a T.handle
+ if (it != op->buffer_map.end()) {
+ // check if this match_buffer has only the first two arguments specified
+ const auto buf = (*it).second;
+ if (IsSimpleBuffer(buf)) {
+ buf_not_in_headers_.insert(buf.get());
+ Doc buf_param_doc;
+ buf_param_doc << buf->name << ": " << MatchBufferDeclaration(buf);
Review comment:
this is fixed.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]