This is an automated email from the ASF dual-hosted git repository.

wuwei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 342f4721c4 [Disco] Improve error message for CallPacked (#16919)
342f4721c4 is described below

commit 342f4721c4f96fe5091df1e85d43620172831abd
Author: Wuwei Lin <wu...@apache.org>
AuthorDate: Mon Apr 22 19:28:46 2024 -0700

    [Disco] Improve error message for CallPacked (#16919)
---
 src/runtime/disco/bcast_session.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime/disco/bcast_session.cc 
b/src/runtime/disco/bcast_session.cc
index 0eee5e4f09..493bc3fb1d 100644
--- a/src/runtime/disco/bcast_session.cc
+++ b/src/runtime/disco/bcast_session.cc
@@ -106,7 +106,7 @@ DRef BcastSessionObj::CallWithPacked(const TVMArgs& args) {
           type_code != kTVMDataType && type_code != kDLDevice && type_code != 
kTVMOpaqueHandle &&
           type_code != kTVMStr && type_code != kTVMNullptr && type_code != 
kTVMBytes &&
           type_code != kTVMObjectHandle) {
-        os << "\n  Argument #" << i << " has unsupported type code: " << 
type_code << " ("
+        os << "\n  Argument #" << i - 3 << " has unsupported type code: " << 
type_code << " ("
            << ArgTypeCode2Str(type_code) << ")";
         cnt += 1;
       }

Reply via email to