Closed rlouf closed 1 year ago
The problem comes from this line:
logp_val += ifelse( at.eq(indices[0], i), comp_logp, at.zeros_like(value), )
~Ah, yeah, looks like we need to add a dtype
to the at.zeros_like
.~ Actually, both branches should be floats, no?
I was working on a zero-inflated model example for the documentation when I stumbled upon the following error (I added a
dtype
attribute toDiracDelta
)
How did you add a dtype
attribute to DiracDelta
? The way it currently works should adequately reflect the dtype of the input, so it seems like the input should be cast to the desired dtype instead.
I was working on a zero-inflated model example for the documentation when I stumbled upon the following error (I added a
dtype
attribute toDiracDelta
)The problem comes from this line:
It looks like there might be a problem of the dtype not being properly propagated.