Skip to content

Commit

Permalink
SPLIT TUNING FOR AMCLMC INTO SEPARATE FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenharry committed Jun 4, 2024
1 parent da83d56 commit 31a7be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blackjax/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def one_step(average_and_state, xs, return_state):
if return_state:
return (average, state), (transform(state), info)
else:
return (average, state), average[1]
return (average, state), None

one_step = jax.jit(partial(one_step, return_state=return_state_history))

Expand All @@ -233,7 +233,7 @@ def one_step(average_and_state, xs, return_state):
)

if not return_state_history:
return average, transform(final_state), history
return average, transform(final_state)
else:
state_history, info_history = history
return transform(final_state), state_history, info_history
Expand Down

0 comments on commit 31a7be6

Please sign in to comment.