Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger authored Aug 29, 2023
1 parent 6fe42a5 commit ec21970
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/stateful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
"def compute_loss(model, state, xs, ys):\n",
" # The `axis_name` argument is needed specifically for `BatchNorm`: so it knows\n",
" # what axis to compute batch statistics over.\n",
" # The `in_axes` and `out_axes` are needed with all stateful operations, so that\n",
" # `ctx` isn't batched.\n",
" # The `in_axes` and `out_axes` are needed so that `state` isn't batched.\n",
" batch_model = jax.vmap(\n",
" model, axis_name=\"batch\", in_axes=(0, None), out_axes=(0, None)\n",
" )\n",
Expand Down

0 comments on commit ec21970

Please sign in to comment.