Numpyro: ‘BernoulliLogits’ object has no attribute ‘mask’

Created on 24 Feb 2021  Â·  2Comments  Â·  Source: pyro-ppl/numpyro

Hello! We are trying this tutorial: https://github.com/pyro-ppl/numpyro/blob/master/notebooks/source/discrete_imputation.ipynb

and we go this error message:
AttributeError: ‘BernoulliLogits’ object has no attribute ‘mask’
in the function impmodel().

Would you have suggestions on how to fix this?
Note: we use numpyro.infer import MCMC, NUTS.
Thank you.

Most helpful comment

Hi @pookiecoding, could you try to update funsor? I guess the error happens because of using the old funsor version.

All 2 comments

Hi @pookiecoding, could you try to update funsor? I guess the error happens because of using the old funsor version.

Yes! that works. We updated our Ubuntu, and funsor. Thank you very much @fehiepsi for quick answer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LysSanzMoreta picture LysSanzMoreta  Â·  3Comments

fehiepsi picture fehiepsi  Â·  3Comments

ross-h1 picture ross-h1  Â·  6Comments

fehiepsi picture fehiepsi  Â·  4Comments

ziatdinovmax picture ziatdinovmax  Â·  4Comments