From ef08b48cbf00763f9f3c809c4870b244f4ffdc36 Mon Sep 17 00:00:00 2001 From: wrongtest Date: Sun, 31 Aug 2025 11:25:51 +0000 Subject: [PATCH] [FFI] fix two seemingly migration issue --- ffi/python/tvm_ffi/cython/function.pxi | 1 + include/tvm/ir/expr.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ffi/python/tvm_ffi/cython/function.pxi b/ffi/python/tvm_ffi/cython/function.pxi index 00a0bb351508..a223da90cb7e 100644 --- a/ffi/python/tvm_ffi/cython/function.pxi +++ b/ffi/python/tvm_ffi/cython/function.pxi @@ -186,6 +186,7 @@ cdef inline int make_args(tuple py_args, TVMFFIAny* out, list temp_args, temp_args.append(tstr) elif arg is None: out[i].type_index = kTVMFFINone + out[i].v_int64 = 0 elif isinstance(arg, Real): out[i].type_index = kTVMFFIFloat out[i].v_float64 = arg diff --git a/include/tvm/ir/expr.h b/include/tvm/ir/expr.h index 9b7645b56a46..f0350af56549 100644 --- a/include/tvm/ir/expr.h +++ b/include/tvm/ir/expr.h @@ -742,7 +742,9 @@ inline constexpr bool use_default_type_traits_v = false; template <> struct TypeTraits : public ObjectRefWithFallbackTraitsBase { - TVM_FFI_INLINE static Integer ConvertFallbackValue(int64_t value) { return Integer(value); } + TVM_FFI_INLINE static Integer ConvertFallbackValue(int64_t value) { + return Integer(TypeTraits::ConvertFallbackValue(value)); + } }; template <>