Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix optax import in readme #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class MLP(eg.Module):
**2.** Create a `Model` from this module and specify additional things like losses, metrics, and optimizers:

```python
import optax optax
import optax
import elegy as eg

model = eg.Model(
Expand Down Expand Up @@ -106,7 +106,7 @@ To use Flax with Elegy just create a `flax.linen.Module` and pass it to `Model`.
```python
import jax
import elegy as eg
import optax optax
import optax
import flax.linen as nn

class MLP(nn.Module):
Expand Down Expand Up @@ -149,7 +149,7 @@ You can also optionally create your own `hk.Module` and use it in `forward` if n
```python
import jax
import elegy as eg
import optax optax
import optax
import haiku as hk


Expand Down