Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix example code
  • Loading branch information
mfschubert authored Nov 2, 2023
1 parent eb2a44a commit 289454e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ state = opt.init(params)
# Carry out the optimization.
for i in range(steps):
params = opt.params(state)
(value, (response, distance, aux)), grad = value_and_grad_fn(params)
(value, (response, distance, metrics, aux)), grad = value_and_grad_fn(params)
state = opt.update(grad=grad, value=value, params=params, state=state)
```
With some plotting (see the [example notebook](notebooks/readme_example.ipynb)), this code will produce the following waveguide bend:
Expand Down

0 comments on commit 289454e

Please sign in to comment.