Skip to content

Commit 5c9d449

Browse files
authored
Merge pull request #1976 from cornellius-gp/fix_rmatmul_test_tol
Increase tolerance on _test_rmatmul of TestLazyEvaluatedKernelTensorBatch
2 parents b910131 + a528532 commit 5c9d449

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/lazy/test_lazy_evaluated_kernel_tensor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def _test_rmatmul(self, lhs):
5656
for param, param_copy in zip(lazy_tensor.kernel.parameters(), lazy_tensor_copy.kernel.parameters()):
5757
self.assertAllClose(param.grad, param_copy.grad, rtol=1e-3)
5858
self.assertAllClose(
59-
lazy_tensor.x1.grad + lazy_tensor.x2.grad, lazy_tensor_copy.x1.grad + lazy_tensor_copy.x2.grad, rtol=1e-3
59+
lazy_tensor.x1.grad + lazy_tensor.x2.grad,
60+
lazy_tensor_copy.x1.grad + lazy_tensor_copy.x2.grad,
61+
rtol=1e-3,
62+
atol=1e-4,
6063
)
6164

6265
def _test_inv_matmul(self, rhs, lhs=None, cholesky=False):

0 commit comments

Comments
 (0)