We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to:
the namespace modules should expose an alias to None named newaxis to make indexing code more explicit.
None
newaxis
However it seems to be missing in array-api-compat, at least for PyTorch:
array-api-compat
>>> import array_api_compat.torch as xp >>> xp.newaxis is None Traceback (most recent call last): Cell In[6], line 1 xp.newaxis AttributeError: module 'array_api_compat.torch' has no attribute 'newaxis'
Note, the same snippet works with numpy:
>>> import array_api_compat.numpy as xp >>> xp.newaxis is None True
The text was updated successfully, but these errors were encountered:
KernelCenterer
I guess newaxis isn't in the main torch namespace. I would have expected this to be caught by the test suite, but I guess not.
Sorry, something went wrong.
Add newaxis to torch aliases
2cdaf27
Closes data-apisgh-64
8ee2507
r2_score
Successfully merging a pull request may close this issue.
According to:
the namespace modules should expose an alias to
None
namednewaxis
to make indexing code more explicit.However it seems to be missing in
array-api-compat
, at least for PyTorch:Note, the same snippet works with numpy:
The text was updated successfully, but these errors were encountered: