In PyTorch version 1.8, the torch.gels function has indeed been removed, and it should be replaced with the torch.linalg.lstsq function.
In PyTorch version 1.8, the torch.gels function has indeed been removed, and it should be replaced with the torch.linalg.lstsq function.