Skip to content

Commit

Permalink
fix test for pytorch 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Feb 20, 2025
1 parent 767c68a commit 06bdc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_multiple_priors(dtype):
with tempfile.NamedTemporaryFile() as f:
torch.save(model, f)
f.seek(0)
model2 = torch.load(f)
model2 = torch.load(f, weights_only=False)
priors2 = model2.model.prior_model
assert len(priors2) == 3
assert isinstance(priors2[0], ZBL)
Expand Down

0 comments on commit 06bdc7b

Please sign in to comment.