You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've encountered a use case from porting a CuPy-based project on ALCF Aurora and was wondering if we can support a similar in functionality to access a dpnp.array with attributes data and .data.ptr.
importdpnpa=dpnp.array([1, 2, 3])
print(type(a))
print(hasattr(a, 'data')) # True for cupyprint(hasattr(a.data, 'ptr')) # True for cupy, False for numpyprint(a.data.ptr) # Integer (CUDA memory address)