Skip to content

Commit db62eb1

Browse files
committed
Fixed float32 error
1 parent 93b3f76 commit db62eb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymc3/tests/test_sampling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def test_deterministic_of_observed(self):
416416
assert np.allclose(ppc["in_1"] + ppc["in_2"], ppc["out"], rtol=rtol)
417417

418418
def test_var_name_order_invariance(self):
419-
obs_a = theano.shared(np.array([10., 20., 30.]))
419+
obs_a = theano.shared(pm.theanof.floatX(np.array([10., 20., 30.])))
420420
with pm.Model() as m:
421421
pm.Normal('mu', 3, 5)
422422
a = pm.Normal('a', 20, 10, observed=obs_a)
@@ -437,7 +437,6 @@ def test_var_name_order_invariance(self):
437437
assert np.all(ppc1["b"] == ppc2["b"])
438438
assert np.allclose(ppc1["b"], (2 * ppc1["a"]))
439439

440-
441440
def test_deterministic_of_observed_modified_interface(self):
442441
meas_in_1 = pm.theanof.floatX(2 + 4 * np.random.randn(100))
443442
meas_in_2 = pm.theanof.floatX(5 + 4 * np.random.randn(100))

0 commit comments

Comments
 (0)