-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InitVar and pickle break PyTreeDef equality #859
Comments
HGangloff
added a commit
to mia-jinns/jinns
that referenced
this issue
Sep 20, 2024
…ave the nn_params in the pickle anymore but only the eq_params. See patrick-kidger/equinox#859
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
This is a similar issue to #857, it looks like there is a bad interaction between
InitVar
andpickle
. Better practices than resorting topickle
are given in the documentation and I have been able to solve the issue and find a better workaround. But I think I should open the issue for the record.Pickling model parameters containing an
InitVar
breaks PyTreeDef equality:The above works by removing the
InitVar
:The text was updated successfully, but these errors were encountered: