Skip to content

Commit 5a7ef40

Browse files
Merge pull request #27026 from garymm:patch-3
PiperOrigin-RevId: 735382490
2 parents 21884d4 + 6a718b7 commit 5a7ef40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stateful-computations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def update(params: Params, x: jnp.ndarray, y: jnp.ndarray) -> Params:
195195
# and then use `updates` instead of `grad` to actually update the params.
196196
# (And we'd include `new_optimizer_state` in the output, naturally.)
197197
198-
new_params = jax.tree_map(
198+
new_params = jax.tree.map(
199199
lambda param, g: param - g * LEARNING_RATE, params, grad)
200200
201201
return new_params

0 commit comments

Comments
 (0)