-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEP-18 not working #15
Comments
can we walk back up the class / module tree of the input to sort out what version of |
Looks like we need to rely on >>> import inspect
>>>
>>> import cupy as cp
>>> a = cp.empty(10)
>>> type(a).__module__
'cupy.core.core'
>>> inspect.getmodule(a) is None # useless
True
>>>
>>> import numpy as np
>>> b = np.empty(10)
>>> type(b).__module__
'numpy'
>>> inspect.getmodule(b) is None # useless
True |
For CuPy's uninformative |
I'm late to the party here, just noticed this. The way to handle array creation is use
In the past, the |
I am testing the compatibility with CuPy and I notice this error:
The reasons is that internally
multitau
allocates two arraysg2
andtau
using NumPy API, which is not (yet) smart enough to dispatch to CuPy.I tried to refresh my memory on NEP-18, but I don't think this issue was addressed there. Looks like to accommodate different NEP-18 compliant arrays, we need to detect the array source and call the corresponding array-creation API?
I may have missed something obvious, though.
The text was updated successfully, but these errors were encountered: