Skip to content

Commit 7f20180

Browse files
committed
gels -> lstsq
Signed-off-by: Edward Z. Yang <[email protected]>
1 parent 47f9470 commit 7f20180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def _get_perspective_coeffs(startpoints, endpoints):
437437

438438
A = torch.tensor(matrix, dtype=torch.float)
439439
B = torch.tensor(startpoints, dtype=torch.float).view(8)
440-
res = torch.gels(B, A)[0]
440+
res = torch.lstsq(B, A)[0]
441441
return res.squeeze_(1).tolist()
442442

443443

0 commit comments

Comments
 (0)