making use of aux data of custom Pytree node in tree map #12649
Unanswered
SaitejaUtpala
asked this question in
Q&A
Replies: 1 comment
-
cleared in #12711 |
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.
-
Consider following custom Pytree with auxillary data.
Now consider transforming a two Pytree which have node of above type using
jax.tree_map
. But I want to transform using attribute which is an aux data, which will not be available if we usingtreemap
, as transformation is done using only leaves.jax.tree_map( lambda leave1, leave2 : # auxdata is not accessible here, Pytree1, Pytree2)
Any best solution ?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions