get_params
returned from the optimizers feels weird.
#6406
-
Feels like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This is one of the design decision optax changes ( I'm not aware of any cases where |
Beta Was this translation helpful? Give feedback.
-
Using That said, that generality might not actually be useful in a given context. That's partially why optimizers.py is just an example. If you don't like something about it, it's easy enough to fork and change. Or if you want a more robust, actively-developed library rather than an example, tools like optax are perfect! |
Beta Was this translation helpful? Give feedback.
This is one of the design decision optax changes (
params
andopt_state
are decoupled). It might be worth trying that library instead.I'm not aware of any cases where
params = get_params(opt_state)
is preferable to havingparams
separate fromopt_state
, however changing this injax.experimental.optimizers
would be API breaking so I would guess this will not happen.