Contents:
https://github.com/pytorch/pytorch/issues/27749#issuecomment-703387840
pugh_torch.linalg.batch_lstsq.
batch_lstsq
Compute the least-squares solution.
Finds x that minimizes Ax - B
x
Ax - B
input (torch.Tensor) – (b, m, k)
A (torch.Tensor) – (b, m, n)
(b, n, k) least squares solution.
torch.Tensor