Skip to content

Commit 2d5024a

Browse files
committed
changed function arguments
1 parent 1238d22 commit 2d5024a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cvxpylayers/torch/test_cvxpylayer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def test_least_squares(self):
8888
def lstsq(
8989
A,
9090
b): return torch.solve(
91-
(A_th.t() @ b_th).unsqueeze(1),
92-
A_th.t() @ A_th +
91+
(A.t() @ b).unsqueeze(1),
92+
A.t() @ A +
9393
torch.eye(n).double())[0]
9494
x_lstsq = lstsq(A_th, b_th)
9595

0 commit comments

Comments
 (0)