Skip to content

Commit f732a01

Browse files
cast test values to the correct dtype before assignment (#4221)
closes #4219
1 parent 3f14968 commit f732a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ def __init__(
17971797

17981798
# make this RV a view on the combined missing/nonmissing array
17991799
theano.gof.Apply(theano.compile.view_op, inputs=[data], outputs=[self])
1800-
self.tag.test_value = theano.compile.view_op(data).tag.test_value
1800+
self.tag.test_value = theano.compile.view_op(data).tag.test_value.astype(self.dtype)
18011801
self.scaling = _get_scaling(total_size, data.shape, data.ndim)
18021802

18031803
@property

0 commit comments

Comments
 (0)