-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
For dynamic snodes, calling to_numpy() results a whole array padded with zeros, not the actual length #6841
Comments
neozhaoliang
changed the title
Dynamic snode to_numpy() results a whole array padded with zeros, not the actual length
For dynamic snodes, calling to_numpy() results a whole array padded with zeros, not the actual length
Dec 8, 2022
This might be difficult to solve in the python frontend. Since |
neozhaoliang
added a commit
that referenced
this issue
Dec 14, 2022
) This PR adds a warning message when the user tries to call the `to_numpy` method of a dynamic snode. close: #6841 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Repository owner
moved this from Todo
to Done
in Taichi Lang
Dec 14, 2022
quadpixels
pushed a commit
to quadpixels/taichi
that referenced
this issue
May 13, 2023
…ichi-dev#6853) This PR adds a warning message when the user tries to call the `to_numpy` method of a dynamic snode. close: taichi-dev#6841 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's say we have an empty dynamic snode like this:
This behavior may cause problems, for example, using
arr
to drawgui.circle
orgui.lines
will give false results at the origin.We should make the returned array have the same size with the actual length of the dynamic snode.
The text was updated successfully, but these errors were encountered: