Replies: 2 comments 1 reply
-
Thanks for reporting this. Looping also @nullstring on this issue. Is this issue specific to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
equinox
and wanted to usemechanize
. However, in thejax.lax.cond
@ this line apparently the PyTree structures used in thecond
are different thus triggering the error:Code
Error
Triaging the problem
I put the 2 PyTrees whose structure is dissimilar and computed the diff. I think the first PyTree on the left is
params
and the one on the right isstate.x0
.https://www.diffchecker.com/sYMTXWWi/
It appears that using
Dropout
is the common denominator in each difference. This is the first training step, so perhaps it marks some fields asNone
before they're updated? I'm not sure.Note: This is the definition of
eqx.nn.Dropout
as in the equinox package. The core logic is really simple.Is
MECHANIC
not supposed to work withDropout
? I'm open to PR-ing fixes if that's of any help.Beta Was this translation helpful? Give feedback.
All reactions