Skip to content

symeig -> eigvalsh#36

Merged
cshewmake2 merged 1 commit intomainfrom
alvin/fix_warn
May 25, 2022
Merged

symeig -> eigvalsh#36
cshewmake2 merged 1 commit intomainfrom
alvin/fix_warn

Conversation

@alvinzz
Copy link
Collaborator

@alvinzz alvinzz commented May 25, 2022

avoids

sparsecoding/inference.py:441: UserWarning: torch.symeig is deprecated in favor of torch.linalg.eigh and will be removed in a future PyTorch release.
The default behavior has changed from using the upper triangular portion of the matrix by default to using the lower triangular portion.
L, _ = torch.symeig(A, upper=upper)
should be replaced with
L = torch.linalg.eigvalsh(A, UPLO='U' if upper else 'L')
and
L, V = torch.symeig(A, eigenvectors=True)
should be replaced with
L, V = torch.linalg.eigh(A, UPLO='U' if upper else 'L') (Triggered internally at  ../aten/src/ATen/native/BatchLinearAlgebra.cpp:2524.)
  lipschitz_constant = torch.symeig(
.......................

@alvinzz alvinzz requested a review from 9q9q May 25, 2022 18:02
@cshewmake2 cshewmake2 merged commit cec0cf3 into main May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants