Skip to content

Commit

Permalink
Fix Cython Error on macOS (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao authored and tqchen committed Aug 1, 2023
1 parent 863ac8b commit dc35078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/_ffi/_cython/ndarray.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cdef const char* _c_str_dltensor = "dltensor"
cdef const char* _c_str_used_dltensor = "used_dltensor"


cdef void _c_dlpack_deleter(object pycaps):
cdef void _c_dlpack_deleter(object pycaps) noexcept:
cdef DLManagedTensor* dltensor
if pycapsule.PyCapsule_IsValid(pycaps, _c_str_dltensor):
dltensor = <DLManagedTensor*>pycapsule.PyCapsule_GetPointer(pycaps, _c_str_dltensor)
Expand Down

0 comments on commit dc35078

Please sign in to comment.