How to get params of optimizer? #316
Answered
by
pharringtonp19
arihantbansal
asked this question in
Q&A
-
Is there any way to get parameters of the optimizer/network at a step given the optimizer state? Similar to |
Beta Was this translation helpful? Give feedback.
Answered by
pharringtonp19
Mar 9, 2022
Replies: 1 comment
-
I think you are looking for the following two lines of code.
At each iteration
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arihantbansal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@arihantbansal
I think you are looking for the following two lines of code.
At each iteration
optimizer.update(grads, opt_state)
optax.apply_updates(params, updates)