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

tqchen 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 56bfd72f7b [FFI] Fix dynamic FFI index to ensure compatibility (#17727)
56bfd72f7b is described below

commit 56bfd72f7bd362967db8dfb2f964c9f85bd45cd9
Author: Tianqi Chen <[email protected]>
AuthorDate: Sun Mar 9 15:13:56 2025 -0400

    [FFI] Fix dynamic FFI index to ensure compatibility (#17727)
    
    This PR sets the dynamic index to the original value
    in past versions so we can have stable compatibility
    when we phase out static objects.
---
 include/tvm/runtime/object.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/include/tvm/runtime/object.h b/include/tvm/runtime/object.h
index 81dcb43c0b..892294bd82 100644
--- a/include/tvm/runtime/object.h
+++ b/include/tvm/runtime/object.h
@@ -77,9 +77,12 @@ struct TypeIndex {
     /*! \brief runtime::RPCObjectRef */
     kRuntimeRPCObjectRef = 9,
     // static assignments that may subject to change.
-    kStaticIndexEnd,
-    /*! \brief Type index is allocated during runtime. */
-    kDynamic = kStaticIndexEnd
+    kStaticIndexEnd = 10,
+    /*!
+     * \brief Type index is allocated during runtime, keeping it as
+     * constant for now to ensure compatibility across versions
+     */
+    kDynamic = 12
   };
 };  // namespace TypeIndex
 

Reply via email to