-
Notifications
You must be signed in to change notification settings - Fork 29
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
2023.12 compat: astype has no device
kwarg
#226
Comments
Looks like this should be an issue for all the wrapped libaries since it's missing from the common wrapper array-api-compat/array_api_compat/common/_aliases.py Lines 236 to 239 in 5ef0e18
|
Just ran into this. import numpy as np
np.astype(np.asarray(True), np.bool, device=None)
from array_api_compat import numpy as np
np.astype(np.asarray(True), np.bool, device=None)
# TypeError: astype() got an unexpected keyword argument 'device' |
lucascolley
changed the title
2023.12 compat: torch.astype has no
2023.12 compat:astype has no Jan 22, 2025
device
kwargdevice
kwarg
lucascolley
changed the title
2023.12 compat:astype has no
2023.12 compat: astype has no Jan 22, 2025
device
kwargdevice
kwarg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't have a need for using the device kwarg yet, but it would be useful for it to at least exist!
The text was updated successfully, but these errors were encountered: