Skip to content

Commit

Permalink
Merge pull request #3462 from zhaoyang-0204:my_branch
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 582824459
  • Loading branch information
Flax Authors committed Nov 15, 2023
2 parents 79d925f + 56fbfb2 commit 78b0c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/flip/1009-optimizer-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def train_step(opt_state, variables, inputs, labels, apply_fn, tx_update_fn):
params)
updates, new_opt_state = tx_update_fn(grads, opt_state, params)
new_params = optax.apply_updates(params, updates)
new_variables = {**variables, **new_model_state, 'params': params}
new_variables = {**variables, **new_model_state, 'params': new_params}
return new_opt_state, new_variables, loss


Expand Down

0 comments on commit 78b0c8c

Please sign in to comment.