Skip to content

Commit

Permalink
Change parameter for torch2.6
Browse files Browse the repository at this point in the history
Default parameter for torch.load has changed.
  • Loading branch information
pobonomo committed Feb 7, 2025
1 parent 61cbd2d commit 37c91b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pytorch/test_pytorch_formulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_diabetes_pytorch(self):
X = load(os.path.join(self.basedir, "examples_diabetes.joblib"))

filename = os.path.join(self.basedir, "diabetes__pytorch.pt")
regressor = torch.load(filename)
regressor = torch.load(filename, weights_only=False)
onecase = {"predictor": regressor, "nonconvex": 0}
self.do_one_case(onecase, X, 5, "all")
self.do_one_case(onecase, X, 6, "pairs")

0 comments on commit 37c91b0

Please sign in to comment.