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
Indexing a DNDarray with a 0-dimensional DNDarray as a key throws an error.
>>> import heat as ht >>> import numpy as np >>> np.array(False)[np.array(False)] array([], dtype=bool) >>> ht.array(False)[ht.array(False)] Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../heat/core/dndarray.py", line 755, in __getitem__ if self.__key_adds_dimension(key, i, self_proxy): File ".../heat/core/dndarray.py", line 968, in __key_adds_dimension return self_proxy[(*zeros[:axis], key[axis], *zeros[axis:])].ndim == 2 IndexError: too many indices for tensor of dimension 0
main (development branch)
3.10
1.11
The text was updated successfully, but these errors were encountered:
Thanks for this, ongoing work in #938
Sorry, something went wrong.
Branch bugs/1019-_Bug_Indexing_with_0-dimensional_key created!
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.
ClaudiaComito
Successfully merging a pull request may close this issue.
What happened?
Indexing a DNDarray with a 0-dimensional DNDarray as a key throws an error.
Code snippet triggering the error
Version
main (development branch)
Python version
3.10
PyTorch version
1.11
The text was updated successfully, but these errors were encountered: