Skip to content

Commit

Permalink
changed function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelphy committed Jan 11, 2022
1 parent 1238d22 commit 2d5024a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvxpylayers/torch/test_cvxpylayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_least_squares(self):
def lstsq(
A,
b): return torch.solve(
(A_th.t() @ b_th).unsqueeze(1),
A_th.t() @ A_th +
(A.t() @ b).unsqueeze(1),
A.t() @ A +
torch.eye(n).double())[0]
x_lstsq = lstsq(A_th, b_th)

Expand Down

0 comments on commit 2d5024a

Please sign in to comment.