pyro-ppl / numpyro

Probabilistic programming with NumPy powered by JAX for autograd and JIT compilation to GPU/TPU/CPU.
https://num.pyro.ai
Apache License 2.0
2.09k stars 227 forks source link

Inference Test Failing #1814

Closed juanitorduz closed 1 week ago

juanitorduz commented 3 weeks ago

It looks that some inference tests are failing: https://github.com/pyro-ppl/numpyro/actions/runs/9548151326/job/26314886730

AttributeError: `np.issctype` was removed in the NumPy 2.0 release. Use `issubclass(rep, np.generic)` instead.
E       OverflowError: Python int too large to convert to C long

Summary

FAILED test/contrib/test_tfp.py::test_transformed_distributions - AttributeError: `np.issctype` was removed in the NumPy 2.0 release. Use `issubclass(rep, np.generic)` instead.
FAILED test/contrib/test_tfp.py::test_sample_unwrapped_tfp_distributions[Beta-args1] - OverflowError: Python int too large to convert to C long
FAILED test/contrib/test_tfp.py::test_sample_unwrapped_tfp_distributions[Binomial-args2] - OverflowError: Python int too large to convert to C long
FAILED test/contrib/test_tfp.py::test_sample_unwrapped_tfp_distributions[Dirichlet-args5] - OverflowError: Python int too large to convert to C long
FAILED test/contrib/test_tfp.py::test_sample_unwrapped_tfp_distributions[InverseGamma-args7] - OverflowError: Python int too large to convert to C long
FAILED test/contrib/test_tfp.py::test_sample_unwrapped_mixture_same_family - OverflowError: Python int too large to convert to C long
fehiepsi commented 2 weeks ago

I think we can filter out these tests while waiting for the next tfp release.

fehiepsi commented 1 week ago

Closed. Thanks for fixing the issue, @juanitorduz!