Skip to content

Commit

Permalink
fix typo in batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
danielward27 committed Aug 26, 2023
1 parent 78c9350 commit fdb3c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flowjax/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def sample_reference_posterior(
key, subkey = jr.split(key)

candidates = jax.jit(jax.vmap(self.simulator, in_axes=[0, None]))(
jr.split(subkey, 500), observation
jr.split(subkey, num_samples), observation
)
in_prior_support = self.prior.log_prob(candidates) != -jnp.inf
sample_counter += in_prior_support.sum()
Expand Down

0 comments on commit fdb3c38

Please sign in to comment.