Skip to content

Commit 9bceb2d

Browse files
committed
style: loop_state -> initial_loop_state
1 parent afc2d36 commit 9bceb2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/jax_intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,8 @@ def compute_call_price_jax(β=β,
842842
new_loop_state = s, h, key
843843
return new_loop_state
844844
845-
loop_state = s, h, key
846-
final_loop_state = jax.lax.fori_loop(0, n, update, loop_state)
845+
initial_loop_state = s, h, key
846+
final_loop_state = jax.lax.fori_loop(0, n, update, initial_loop_state)
847847
s, h, key = final_loop_state
848848
849849
expectation = jnp.mean(jnp.maximum(jnp.exp(s) - K, 0))

0 commit comments

Comments
 (0)