You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/07/20 20:11:44 UTC
[GitHub] [tvm] ZihengJiang commented on a change in pull request #8515: [TIR] Bugfix for zero number arguments tir functions.
ZihengJiang commented on a change in pull request #8515:
URL: https://github.com/apache/tvm/pull/8515#discussion_r673453914
##########
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:
Updated
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org