mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 12:56:07 +00:00
fix advi example: pass tuples rather than lists to jitted function
This commit is contained in:
parent
17a606a95d
commit
9f8e3df320
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user