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
While computing logpdf of Multivariate normal distributions, the logpdf is of type Float64, even when the mean, covariance matrix and observation all have eltype Float32.
MVE for TuringDiagMvNormal (TuringScalMvNormal and TuringDenseMvNormal suffer the same problem):
I'm experiencing the same problem with DistributionsAD v0.6.28
Edit:
Thinking about this a bit longer, I'm not sure if it is reasonable to expect that the output type of logpdf should mirror the type of either the parameters of the distribution or the value whose log probability should be determined.
While computing logpdf of Multivariate normal distributions, the logpdf is of type Float64, even when the mean, covariance matrix and observation all have eltype Float32.
MVE for TuringDiagMvNormal (TuringScalMvNormal and TuringDenseMvNormal suffer the same problem):
After a quick glance at the source, the problem seems to be that the constant 2π is Float64, which then promotes the rest of the expression.
The text was updated successfully, but these errors were encountered: