Skip to content

Commit

Permalink
Fix same test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomo m committed Apr 18, 2024
1 parent 0c5388c commit b0853d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions falkon/tests/test_conjgrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def test_restarts(self, data, centers, kernel, preconditioner, knm, kmm, vec_rhs
def test_precomputed_kernel(self, data, centers, kernel, preconditioner, knm, kmm, vec_rhs, device):
preconditioner = preconditioner.to(device)
options = dataclasses.replace(self.basic_opt, use_cpu=device == "cpu")
knm = move_tensor(knm, device)
calc_kernel = PrecomputedKernel(knm, options)
knm_dev = move_tensor(knm, device)
calc_kernel = PrecomputedKernel(knm_dev, options)
opt = FalkonConjugateGradient(calc_kernel, preconditioner, opt=options)

# Solve (knm.T @ knm + lambda*n*kmm) x = knm.T @ b
Expand Down

0 comments on commit b0853d6

Please sign in to comment.