Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/tvm/_ffi/_ctypes/packed_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class PackedFuncBase(object):
"""Function base."""

__slots__ = ["handle", "is_global"]

# pylint: disable=no-member
def __init__(self, handle, is_global):
"""Initialize the function with handle
Expand Down Expand Up @@ -342,6 +343,7 @@ def _init_pythonapi_inc_def_ref():
register_func(c_str("Py_DecRef"), ctypes.pythonapi.Py_DecRef)
register_func(c_str("PyGILState_Ensure"), ctypes.pythonapi.PyGILState_Ensure)
register_func(c_str("PyGILState_Release"), ctypes.pythonapi.PyGILState_Release)
register_func(c_str("PyErr_CheckSignals"), ctypes.pythonapi.PyErr_CheckSignals)


_init_pythonapi_inc_def_ref()