Skip to content

Commit

Permalink
cast test values to the correct dtype before assignment (#4221)
Browse files Browse the repository at this point in the history
closes #4219
  • Loading branch information
michaelosthege authored Nov 11, 2020
1 parent 3f14968 commit f732a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f732a01

Please sign in to comment.