Replies: 1 comment 2 replies
-
I think this is mostly OK – the one situation this might cause problems is if a function is if the pytree can be mutated during abstract evaluation of a function. This might, for example, mean that when you pre-compile a function using I can't think of other cases where it would be problematic, but they may exist – mutation can be tricky. |
Beta Was this translation helpful? Give feedback.
2 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.
-
I have cooked up the following example code
It produces:
Everything appears to work but the children of the class change dynamically as it is used. Is this behavior allowed in JAX?
Beta Was this translation helpful? Give feedback.
All reactions