areusch commented on a change in pull request #8515:
URL: https://github.com/apache/tvm/pull/8515#discussion_r673430696



##########
File path: src/tir/transforms/make_packed_api.cc
##########
@@ -120,6 +120,11 @@ PrimFunc MakePackedAPI(PrimFunc&& func, int 
num_unpacked_args) {
   int num_args = static_cast<int>(func_ptr->params.size());
   ICHECK_LE(num_unpacked_args, num_args);
 
+  bool pack_args = true;
+  if (num_unpacked_args == -1) {
+    pack_args = false;
+    num_unpacked_args = 0;
+  }
   int num_packed_args = num_args - num_unpacked_args;

Review comment:
       seems like we could `ICHECK_GE(num_unpacked_args, 0)` here now




-- 
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]


Reply via email to