Skip to content

[BUG] - Parametrizations Tutorial should be updated to use pytorch.linalg.solve #2641

Closed
@ahoblitz

Description

@ahoblitz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcoreTutorials of any level of difficulty related to the core pytorch functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions