-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Weird behavior when Iterating over tensors #124
Comments
So, the I know this is really not ideal. We would love some ideas on how to make this more user friendly. One idea that I had earlier in the design was to not only return the |
Ah okay, that is interesting. I guess I must have missed this part of the documentation. Maybe it would be good to then change the example of how to use Iterator (example) to something that is intended?
Perhaps an easy solution would be to add a method which converts the index |
Having some fix for this would be incredibly useful! |
Whilst working with the
tensor.Iterator
functionality I found some strange behavior, when using iterator in a for loop like follows:View
of a tensor that is not a vector/scalar (i.e. obtained by slicing), the issue does not happen.What I found to work properly is to use the following for loop instead, but I don't think this is the intended way of iterating.
The text was updated successfully, but these errors were encountered: