Skip to content

Commit

Permalink
fix vmapped_log_probs example
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjj committed Jul 11, 2020
1 parent 5bbc195 commit 8c8869c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/vmapped_log_probs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
" beta_sample = beta_loc + np.exp(beta_log_scale) * epsilon\n",
" return np.mean(batched_log_joint(beta_sample), 0) + np.sum(beta_log_scale - 0.5 * onp.log(2*onp.pi))\n",
" \n",
"elbo = jax.jit(elbo, static_argnums=(1, 2))\n",
"elbo = jax.jit(elbo)\n",
"elbo_val_and_grad = jax.jit(jax.value_and_grad(elbo, argnums=(0, 1)))"
],
"execution_count": 0,
Expand Down Expand Up @@ -653,4 +653,4 @@
"outputs": []
}
]
}
}

0 comments on commit 8c8869c

Please sign in to comment.