Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cupy/cupy
/ DummyObjectWithCuPyGetNDArray
Class
DummyObjectWithCuPyGetNDArray
cupy/testing/_protocol_helpers.py:74–80 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
72
73
74
class
DummyObjectWithCuPyGetNDArray:
75
# Private helper used for testing `__cupy_get_ndarray__` support.
76
def
__init__(self, a):
77
self.a = a
78
79
def
__cupy_get_ndarray__(self):
80
return
self.a
Callers
1
test_cupy_get_ndarray
Method · 0.90
Calls
no outgoing calls
Tested by
1
test_cupy_get_ndarray
Method · 0.72