Skip to content

Commit

Permalink
improved concision
Browse files Browse the repository at this point in the history
  • Loading branch information
amifalk committed Nov 9, 2023
1 parent a2d54ba commit e52be4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions numpyro/infer/hmc_gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ def init(self, rng_key, num_warmup, init_params, model_args, model_kwargs):

for name, site in self._prototype_trace.items():
if init_params and name in init_params:
gibbs_sites[name] = init_params[name]
init_params.pop(name)
gibbs_sites[name] = init_params.pop(name)

elif name in self._gibbs_sites:
gibbs_sites[name] = site["value"]
Expand Down

0 comments on commit e52be4d

Please sign in to comment.