Skip to content

Commit

Permalink
fixed time step
Browse files Browse the repository at this point in the history
  • Loading branch information
OlaRonning committed Nov 24, 2023
1 parent ba2682c commit 10daf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpyro/contrib/control_flow/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def body_fn(wrapped_carry, x):

elif subs_type == "replay":
trace = handlers.trace(seeded_fn).get_trace(carry, x)
replay_trace_i = _replay_wrapper(subs_map, trace, i - 1, length)
replay_trace_i = _replay_wrapper(subs_map, trace, i, length)
seeded_fn = handlers.replay(seeded_fn, trace=replay_trace_i)

with handlers.trace() as trace:
Expand Down

0 comments on commit 10daf55

Please sign in to comment.