Skip to content

Commit

Permalink
Increase tolerance in LinearOperatorUnitaryTest.test_solve.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 453239614
  • Loading branch information
jburnim authored and tensorflower-gardener committed Jun 6, 2022
1 parent 5172cc7 commit 6d04325
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ def test_solve(self):
broadcasted_y = tf.broadcast_to(y, [7, 1, 13, 3])
self.assertAllClose(
self.evaluate(tf.linalg.solve(q, broadcasted_y)),
self.evaluate(operator.solve(y)))
self.evaluate(operator.solve(y)),
atol=1e-5, rtol=1e-5)

self.assertAllClose(
self.evaluate(tf.linalg.solve(q, broadcasted_y, adjoint=True)),
self.evaluate(operator.solve(y, adjoint=True)))
self.evaluate(operator.solve(y, adjoint=True)),
atol=1e-5, rtol=1e-5)


if __name__ == '__main__':
Expand Down

0 comments on commit 6d04325

Please sign in to comment.