Numpyro: vectorized elbo does not work with beta bernoulli model

Created on 27 Oct 2019  路  4Comments  路  Source: pyro-ppl/numpyro

As observed in #413, when running SVI in beta bernoulli with num_particles=2, we get the error

NotImplementedError: Forward-mode differentiation rule for 'while' not implemented

This seems like a JAX issue but we need to isolate the bug to report upstream.

bug jax

All 4 comments

@fehiepsi from a quick glance the error traces to here: https://github.com/google/jax/blob/master/jax/interpreters/ad.py#L217

Thanks, @TuanNguyen27 ! I believe that this error comes from while_loop of gamma sampler in JAX, but it is a bit hard to make a small repro script. Anyway, this issue should not block your PR, feel free to complete it and mark failing tests as xfail.

Just want to put a context: this issue is tracked at https://github.com/google/jax/issues/1789.

This is fixed in the latest jax release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ross-h1 picture ross-h1  路  6Comments

hyperfra picture hyperfra  路  5Comments

jkgiesler picture jkgiesler  路  5Comments

fehiepsi picture fehiepsi  路  3Comments

jeremiecoullon picture jeremiecoullon  路  4Comments