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
Uh oh!
There was an error while loading. Please reload this page.
-
The following code runs fine without any errors but I'm not sure why. I thought that all members of an
struct.PyTreeNodemust be immutable, but it appears that I can modifybarin-place. I also am surprised to not run into anyjiterrors.I may not completely understand how
PyTreeNodework 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