Skip to content

Commit 11c953c

Browse files
committed
Use absolute tolerance in check_transform
1 parent 389aa90 commit 11c953c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/distributions/test_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def check_transform(transform, domain, constructor=pt.scalar, test=0, rv_var=Non
6161
assert z.type == x.type
6262
identity_f = pytensor.function([x], z, *rv_inputs)
6363
for val in domain.vals:
64-
assert_allclose(val, identity_f(val), tol)
64+
assert_allclose(val, identity_f(val), atol=tol)
6565

6666

6767
def check_vector_transform(transform, domain, rv_var=None):

0 commit comments

Comments
 (0)