You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi -- I'm facing this weird issue where I'm unable to run a model with control_flow.scan and uniformly distributed random variables in it. The following is a simplified reproducer of what I'm trying to do
I don't know much about the numpyro internals, but one obvious difference between a Uniform and a Normal distribution is how their argument constraints are coded: for the former are marked as Dependent, whereas for the latter they are simply Real and Positive.
Hi -- I'm facing this weird issue where I'm unable to run a model with
control_flow.scan
and uniformly distributed random variables in it. The following is a simplified reproducer of what I'm trying to doAttempting to sample from the above model raises an error
However, if I sample U[0,1] in a roundabout way by first sampling a Normal(0,1) and then transforming using its cdf, the model runs fine
I don't know much about the numpyro internals, but one obvious difference between a
Uniform
and aNormal
distribution is how their argument constraints are coded: for the former are marked asDependent
, whereas for the latter they are simplyReal
andPositive
.Uniform
numpyro/numpyro/distributions/continuous.py
Line 2429 in 93e11c2
Normal
numpyro/numpyro/distributions/continuous.py
Line 2179 in 93e11c2
The text was updated successfully, but these errors were encountered: