Skip to content

Commit

Permalink
Update gpytorch/test/base_keops_test_case.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Balandat <Balandat@users.noreply.github.com>
  • Loading branch information
gpleiss and Balandat authored Jan 28, 2025
1 parent fe4619b commit c39666c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpytorch/test/base_keops_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_forward_x1_eq_x2(self, ard=False, use_keops=True, **kwargs):
d1 = kern1(x1, x1).diagonal(dim1=-1, dim2=-2)
d2 = kern2(x1, x1).diagonal(dim1=-1, dim2=-2)
self.assertLess(torch.norm(d1 - d2), 1e-4)
self.assertTrue(torch.equal(k1.diag(), d1))

if use_keops:
self.assertTrue(keops_mock.called)
Expand Down

0 comments on commit c39666c

Please sign in to comment.