-
Notifications
You must be signed in to change notification settings - Fork 34
Should torch.reshape support integer shape? #28
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
Comments
This looks like a bug in numpy.array_api. |
Looks like |
Let's see what the decision here is data-apis/array-api#608. We should probably update numpy.array_api either way. |
Of course, we can still work around this in the wrappers here. But it wouldn't be portable to other array API compliant libraries (not that any necessarily exist). But this should be too hard to work around in upstream code either. |
I think the |
I'll close this issue because |
torch.reshape
requires an tuple as the shape:Note that integer
shape
works withnumpy.array_api
:The text was updated successfully, but these errors were encountered: