Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenharry committed Aug 7, 2024
1 parent 3c7daf2 commit 3f9947c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions blackjax/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,8 @@ def one_step(state, xs):
state, info = inference_algorithm.step(rng_key, state)
return state, transform(state, info)

xs = (jnp.arange(num_steps), keys)
if progress_bar:
one_step = progress_bar_scan(num_steps)(one_step)
(((_, average), final_state), _), history = lax.scan(
one_step,
(((0, expectation(transform(initial_state))), initial_state), -1),
xs,
)

xs = jnp.arange(num_steps), keys
final_state, history = lax.scan(one_step, initial_state, xs)
Expand Down

0 comments on commit 3f9947c

Please sign in to comment.