Closed
Description
Add Link
https://pytorch.org/tutorials/intermediate/parametrizations.html
Describe the bug
Code like
def forward(self, X):
# (I + X)(I - X)^{-1}
return torch.solve(self.Id + X, self.Id - X).solution
results in
RuntimeError: This function was deprecated since version 1.9 and is now removed. torch.solve is deprecated in favor of torch.linalg.solve. torch.linalg.solve has its arguments reversed and does not return the LU factorization.
Tutorial should be updated to use torch.linalg.solve
Describe your environment
Colab
Nvidia
Torch version 2.1.0+cu118
cc @albanD