Skip to content

Commit a2cf082

Browse files
committed
committed fix
1 parent adff6f9 commit a2cf082

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/tvm/_ctypes/_function.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def cfun(args, type_codes, num_args, ret, _):
5555
ret = TVMRetValueHandle(ret)
5656
check_call(_LIB.TVMCFuncSetReturn(ret, values[0], ctypes.c_int(tcodes[0])))
5757
_ = temp_args
58+
_ = rv
5859

5960
handle = FunctionHandle()
6061
f = TVMPackedCFunc(cfun)
@@ -143,6 +144,7 @@ def __call__(self, *args):
143144
self.handle, values, tcodes, ctypes.c_int(num_args),
144145
ctypes.byref(ret_val), ctypes.byref(ret_tcode)))
145146
_ = temp_args
147+
_ = args
146148
return RETURN_SWITCH[ret_tcode.value](ret_val)
147149

148150

0 commit comments

Comments
 (0)