Skip to content

Commit

Permalink
Specify torch.double as the default in test_functional_laplace*.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseodd committed Sep 15, 2024
1 parent 2571a7e commit 1fab3f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_functional_laplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
)

true_sigma_noise = 0.1

torch.manual_seed(711)
torch.set_default_dtype(torch.double)


@pytest.mark.parametrize(
Expand Down
3 changes: 3 additions & 0 deletions tests/test_functional_laplace_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

from laplace.baselaplace import FunctionalLaplace

torch.manual_seed(240)
torch.set_default_dtype(torch.double)


@pytest.fixture
def reg_loader():
Expand Down

0 comments on commit 1fab3f4

Please sign in to comment.