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 929b8f4 commit 91e9c63Copy full SHA for 91e9c63
python/tvm/_ffi/_ctypes/packed_func.py
@@ -195,6 +195,7 @@ class PackedFuncBase(object):
195
"""Function base."""
196
197
__slots__ = ["handle", "is_global"]
198
+
199
# pylint: disable=no-member
200
def __init__(self, handle, is_global):
201
"""Initialize the function with handle
@@ -342,6 +343,7 @@ def _init_pythonapi_inc_def_ref():
342
343
register_func(c_str("Py_DecRef"), ctypes.pythonapi.Py_DecRef)
344
register_func(c_str("PyGILState_Ensure"), ctypes.pythonapi.PyGILState_Ensure)
345
register_func(c_str("PyGILState_Release"), ctypes.pythonapi.PyGILState_Release)
346
+ register_func(c_str("PyErr_CheckSignals"), ctypes.pythonapi.PyErr_CheckSignals)
347
348
349
_init_pythonapi_inc_def_ref()
0 commit comments