Are there any hidden side effects of having a list of jnp.ndarray
as members to a struct.PyTreeNode
#4228
Unanswered
sudo-michael
asked this question in
Q&A
Replies: 1 comment
-
While |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following code runs fine without any errors but I'm not sure why. I thought that all members of an
struct.PyTreeNode
must be immutable, but it appears that I can modifybar
in-place. I also am surprised to not run into anyjit
errors.I may not completely understand how
PyTreeNode
work but any explanation why this works / why this may not be a good idea would be greatly appreciated.Beta Was this translation helpful? Give feedback.
All reactions