How to optimize two set of parameters using one optimizer? #21381
Unanswered
GarfieldGa
asked this question in
Q&A
Replies: 1 comment
-
Can you put together a minimal reproducible example and add it to your question? It's hard to know what might be happening without seeing the code and its output. Thanks! |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an encoder-decoder structure with two params. Currently, I tried to do something like below
But this doesn't work and fails at the optax.apply_updates phase.
I wonder what a solution to this could be. The encoder I use is a simple CNN inherited from nn.Module, while the decoder is a customized class that is not a subclass of nn.module and decoder_params is just a predefined jnp.ndarray.
Beta Was this translation helpful? Give feedback.
All reactions