Skip to content

Remove deprecated torch.symeig#4498

Merged
lsy323 merged 4 commits intopytorch:masterfrom
IvanYashchuk:remove-deprecated-symeig-2
Jan 25, 2023
Merged

Remove deprecated torch.symeig#4498
lsy323 merged 4 commits intopytorch:masterfrom
IvanYashchuk:remove-deprecated-symeig-2

Conversation

@IvanYashchuk
Copy link
Copy Markdown
Contributor

Split #3272 into separate PRs, this PR just removes the symeig function.

@JackCaoG
Copy link
Copy Markdown
Collaborator

@lsy323 can you follow up?

@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Jan 24, 2023

is symeig deprecated from the upstream?

nvm, saw in the comment

@IvanYashchuk
Copy link
Copy Markdown
Contributor Author

is symeig deprecated from the upstream?

nvm, saw in the comment

Yes, it was deprecated since the 1.9 release and it's finally time to remove it.

Copy link
Copy Markdown
Collaborator

@lsy323 lsy323 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

symeig is also referenced in test/pytorch_test_base.py and test/test_ops.py, you may want to remove those lines as well. Otherwise LGTM, pending on CI completion.


SymEig::SymEig(const torch::lazy::Value& input, bool eigenvectors, bool lower)
: XlaNode(torch::lazy::OpKind(at::aten::symeig), {input},
: XlaNode(torch::lazy::OpKind(at::aten::linalg_eigh), {input},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove symeig.h/.cpp since the operator is deprecated. Or you want to rename it to linalg_eigh in the 2nd PR which adds linalg_eigh?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file and implementation will be used for the new linalg_eigh.

@IvanYashchuk
Copy link
Copy Markdown
Contributor Author

Removed mentions of symeig in test/pytorch_test_base.py and test/test_ops.py.

@lsy323 lsy323 self-requested a review January 24, 2023 20:25
@lsy323
Copy link
Copy Markdown
Collaborator

lsy323 commented Jan 24, 2023

Removed mentions of symeig in test/pytorch_test_base.py and test/test_ops.py.

Thanks! Let's merge upon CI completion.

@lsy323
Copy link
Copy Markdown
Collaborator

lsy323 commented Jan 24, 2023

Hi @IvanYashchuk,

The CI failure is not related to this change. #4502 disabled the failed test and is already merged. Let's rebase after HEAD is green again. Thanks Ivan!

Best,
Siyuan

@IvanYashchuk
Copy link
Copy Markdown
Contributor Author

IvanYashchuk commented Jan 25, 2023

Tests fails with:

[  FAILED  ] 1 test, listed below:
[  FAILED  ] AtenXlaTensorTest.TestNonzero

 1 FAILED TEST

@lsy323
Copy link
Copy Markdown
Collaborator

lsy323 commented Jan 25, 2023

Hi @IvanYashchuk, This test has already been temporary disabled in #4512, it should pass after rebase this time. Thanks!

@lsy323 lsy323 merged commit 903f2ac into pytorch:master Jan 25, 2023
@lsy323
Copy link
Copy Markdown
Collaborator

lsy323 commented Jan 26, 2023

Hi @IvanYashchuk, CI passed and this PR is merged, feel free to open the PR to add linalg_eigh. Thanks!

ManfeiBai pushed a commit that referenced this pull request Jan 30, 2023
* Remove deprecated torch.symeig

* Remove further references of symeig
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jan 31, 2023
The time has come to remove deprecated linear algebra related functions. This PR removes `torch.symeig`.

- [x] XLA PR: pytorch/xla#4498

Pull Request resolved: #70988
Approved by: https://github.com/lezcano, https://github.com/kit1980, https://github.com/malfet
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
The time has come to remove deprecated linear algebra related functions. This PR removes `torch.symeig`.

- [x] XLA PR: pytorch/xla#4498

Pull Request resolved: pytorch#70988
Approved by: https://github.com/lezcano, https://github.com/kit1980, https://github.com/malfet
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.

3 participants