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 fc7f952 commit 8ee979d
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 8ee979d

Please sign in to comment.