-
Do we have something similar to Haiku's merge as shown in this guide? Would be useful for freezing part of the model for fine-tuning or similar ideas |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Just use Note that the Haiku guide predates google-deepmind/optax#60 |
Beta Was this translation helpful? Give feedback.
-
I am not sure whether this is a Flax issue/ Optax issue/ Or my incorrect implementation, but I haven't been able to make the above suggestion work.
Which produces the following error
|
Beta Was this translation helpful? Give feedback.
-
Based on the recent discussion in the optax repository, it seems that the solution to this is actually to use |
Beta Was this translation helpful? Give feedback.
Just use
optax.masked()
.Note that the Haiku guide predates google-deepmind/optax#60