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.1k stars 227 forks source link

Raise `NotImplementedError` rather than return it. #1732

Closed tillahoffmann closed 5 months ago

tillahoffmann commented 5 months ago

The forward transform of the Transform base class and summary statistics of truncated distributions return rather than raise exceptions. This PR ensures exceptions are raised.