Skip to content

Commit

Permalink
Update src/numpyro_ext/optim.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Price-Whelan <[email protected]>
  • Loading branch information
dfm and adrn authored Nov 20, 2022
1 parent b0f10c2 commit f9f4ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numpyro_ext/optim.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(rng_key, *args, **kwargs):
state = svi.init(init_key, *args, **kwargs)
for _ in range(num_steps):
state, _ = svi.update(state, *args, **kwargs)
info = state.optim_state[1].state
info = getattr(state.optim_state[1], 'state', None)
params = svi.get_params(state)
sample = guide.sample_posterior(sample_key, params)
if include_deterministics:
Expand Down

0 comments on commit f9f4ad9

Please sign in to comment.