-
I have read the flax and jax docs. I have not found api can be used to freeze or detach some layers in training stage. Does there any examples or function attributes can be used to deal with this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Zhu-haow, BTW we typically use GitHub Discussions for questions. Take a look at the
(We intentionally don't make the property stateful on the modules because you may want to optimize different subsets at different opportunities) cc @marcvanzee for an example of a few bits of missing documentation (also note that the MultiOptimizer has a docstring for the constructor, but we don't show that on RTD), and perhaps a useful HOWTO |
Beta Was this translation helpful? Give feedback.
-
Note that by now |
Beta Was this translation helpful? Give feedback.
Note that by now
flax.optim
is deprecated; see #1453 for an answer in how to do this with Optax.