Skip to content

Commit

Permalink
Merge pull request #785 from yixiaoer:type_annotation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 605532129
  • Loading branch information
OptaxDev committed Feb 9, 2024
2 parents 4eeef48 + d1cbd09 commit a6f30f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/optax-101.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"}\n",
"\n",
"\n",
"def net(x: jnp.ndarray, params: jnp.ndarray) -\u003e jnp.ndarray:\n",
"def net(x: jnp.ndarray, params: optax.Params) -\u003e jnp.ndarray:\n",
" x = jnp.dot(x, params['hidden'])\n",
" x = jax.nn.relu(x)\n",
" x = jnp.dot(x, params['output'])\n",
Expand Down

0 comments on commit a6f30f2

Please sign in to comment.