Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ffi/python/tvm_ffi/cython/function.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion include/tvm/ir/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,9 @@ inline constexpr bool use_default_type_traits_v<Integer> = false;

template <>
struct TypeTraits<Integer> : public ObjectRefWithFallbackTraitsBase<Integer, int64_t> {
TVM_FFI_INLINE static Integer ConvertFallbackValue(int64_t value) { return Integer(value); }
TVM_FFI_INLINE static Integer ConvertFallbackValue(int64_t value) {
return Integer(TypeTraits<IntImm>::ConvertFallbackValue(value));
}
};

template <>
Expand Down
Loading