Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ PyCapsule_IsValid
Function
PyCapsule_IsValid
python/pyarrow/tests/test_dlpack.py:39–40 ·
view source on GitHub ↗
(capsule, name)
Source
from the content-addressed store, hash-verified
37
38
39
def
PyCapsule_IsValid(capsule, name):
40
return
ctypes.pythonapi.PyCapsule_IsValid(ctypes.py_object(capsule), name) == 1
41
42
43
def
check_dlpack_export(arr, expected_arr):
Callers
4
check_dlpack_export
Function · 0.70
test_dlpack_legacy_capsule
Function · 0.70
test_dlpack_versioned_capsule_immutable_tensor
Function · 0.70
test_dlpack_versioned_capsule
Function · 0.70
Calls
1
py_object
Method · 0.80
Tested by
no test coverage detected