We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133290a commit d2ac722Copy full SHA for d2ac722
python/tvm/_ffi/_cython/packed_func.pxi
@@ -121,7 +121,7 @@ cdef inline int make_arg(object arg,
121
elif isinstance(arg, bool):
122
# A python `bool` is a subclass of `int`, so this check
123
# must occur before `Integral`.
124
- value[0].v_bool = arg
+ value[0].v_int64 = arg
125
tcode[0] = kTVMArgBool
126
elif isinstance(arg, Integral):
127
value[0].v_int64 = arg
@@ -215,7 +215,7 @@ cdef inline object make_ret(TVMValue value, int tcode):
215
elif tcode == kTVMNullptr:
216
return None
217
elif tcode == kTVMArgBool:
218
- return value.v_bool
+ return bool(value.v_int64)
219
elif tcode == kInt:
220
return value.v_int64
221
elif tcode == kFloat:
0 commit comments