diff --git a/pymc3/model.py b/pymc3/model.py index ca18a3278d..126c753742 100644 --- a/pymc3/model.py +++ b/pymc3/model.py @@ -1797,7 +1797,7 @@ def __init__( # make this RV a view on the combined missing/nonmissing array theano.gof.Apply(theano.compile.view_op, inputs=[data], outputs=[self]) - self.tag.test_value = theano.compile.view_op(data).tag.test_value + self.tag.test_value = theano.compile.view_op(data).tag.test_value.astype(self.dtype) self.scaling = _get_scaling(total_size, data.shape, data.ndim) @property