File tree 1 file changed +6
-7
lines changed 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 42
42
from tests .test_rop import break_op
43
43
44
44
45
- ATOL = RTOL = 1e-3 if config .floatX == "float32" else 1e-8
46
-
47
-
48
45
def test_rop_lop ():
49
46
mx = matrix ("mx" )
50
47
mv = matrix ("mv" )
@@ -630,11 +627,12 @@ def test_inv_diag_from_eye_mul(shape, inv_op):
630
627
inverse_matrix = np .linalg .inv (x_test_matrix )
631
628
rewritten_inverse = f_rewritten (x_test )
632
629
630
+ atol = rtol = 1e-3 if config .floatX == "float32" else 1e-8
633
631
assert_allclose (
634
632
inverse_matrix ,
635
633
rewritten_inverse ,
636
- atol = ATOL ,
637
- rtol = RTOL ,
634
+ atol = atol ,
635
+ rtol = rtol ,
638
636
)
639
637
640
638
@@ -657,11 +655,12 @@ def test_inv_diag_from_diag(inv_op):
657
655
inverse_matrix = np .linalg .inv (x_test_matrix )
658
656
rewritten_inverse = f_rewritten (x_test )
659
657
658
+ atol = rtol = 1e-3 if config .floatX == "float32" else 1e-8
660
659
assert_allclose (
661
660
inverse_matrix ,
662
661
rewritten_inverse ,
663
- atol = ATOL ,
664
- rtol = RTOL ,
662
+ atol = atol ,
663
+ rtol = rtol ,
665
664
)
666
665
667
666
You can’t perform that action at this time.
0 commit comments