Skip to content

Commit e68e757

Browse files
Prevent dtype conversion in Aesara during testing to avoid a bug
This change avoids the bug fixed in pymc-devs/pytensor#348.
1 parent af07cc3 commit e68e757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/tests/test_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def check_vectortransform_elementwise_logp(self, model, vect_opt=0):
307307
assert logpt(x).ndim == jacob_det.ndim
308308

309309
# Hack to get relative tolerance
310-
a = logpt(x, array, jacobian=False).eval()
310+
a = logpt(x, array.astype(aesara.config.floatX), jacobian=False).eval()
311311
b = logp_nojac.eval()
312312
close_to(a, b, np.abs(0.5 * (a + b) * tol))
313313

0 commit comments

Comments
 (0)