Skip to content

Commit a1451a0

Browse files
author
Flax Authors
committed
Merge pull request #4857 from nenuadrian:patch-1
PiperOrigin-RevId: 797931619
2 parents 5d776fb + 3dfeff9 commit a1451a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nnx_toy_examples/05_vae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def loss_fn(model: VAE):
138138
return loss
139139

140140
loss, grads = nnx.value_and_grad(loss_fn)(model)
141-
optimizer.update(model, grads)
141+
optimizer.update(grads)
142142

143143
return loss
144144

0 commit comments

Comments
 (0)