Skip to content

Commit 6d04325

Browse files
jburnimtensorflower-gardener
authored andcommitted
Increase tolerance in LinearOperatorUnitaryTest.test_solve.
PiperOrigin-RevId: 453239614
1 parent 5172cc7 commit 6d04325

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorflow_probability/python/experimental/linalg/linear_operator_unitary_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ def test_solve(self):
8282
broadcasted_y = tf.broadcast_to(y, [7, 1, 13, 3])
8383
self.assertAllClose(
8484
self.evaluate(tf.linalg.solve(q, broadcasted_y)),
85-
self.evaluate(operator.solve(y)))
85+
self.evaluate(operator.solve(y)),
86+
atol=1e-5, rtol=1e-5)
8687

8788
self.assertAllClose(
8889
self.evaluate(tf.linalg.solve(q, broadcasted_y, adjoint=True)),
89-
self.evaluate(operator.solve(y, adjoint=True)))
90+
self.evaluate(operator.solve(y, adjoint=True)),
91+
atol=1e-5, rtol=1e-5)
9092

9193

9294
if __name__ == '__main__':

0 commit comments

Comments
 (0)