fix advi example: pass tuples rather than lists to jitted function

This commit is contained in:
Roy Frostig 2021-08-10 10:31:26 -07:00
parent 17a606a95d
commit 9f8e3df320

View File

@ -86,8 +86,8 @@ if __name__ == "__main__":
ax = fig.add_subplot(111, frameon=False)
plt.ion()
plt.show(block=False)
x_limits = [-2, 2]
y_limits = [-4, 2]
x_limits = (-2, 2)
y_limits = (-4, 2)
target_dist = lambda x, _: jnp.exp(funnel_log_density(x))
approx_dist = lambda x, params: jnp.exp(diag_gaussian_logpdf(x, *params))