Skip to content

Removed torch.qr and added torch.linalg.qr#3273

Open
IvanYashchuk wants to merge 7 commits intopytorch:masterfrom
IvanYashchuk:remove-deprecated-qr
Open

Removed torch.qr and added torch.linalg.qr#3273
IvanYashchuk wants to merge 7 commits intopytorch:masterfrom
IvanYashchuk:remove-deprecated-qr

Conversation

@IvanYashchuk
Copy link
Copy Markdown
Contributor

@IvanYashchuk IvanYashchuk commented Jan 3, 2022

torch.qr was deprecated in the 1.9 release and will be removed in the next 1.11 release. This PR removes qr and replaces it with the linalg_qr.

pytorch/pytorch#70989 that removes deprecated functions in PyTorch is currently blocked by pytorch/xla.

@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Jan 7, 2022

@IvanYashchuk head is green again, please rebase and the build should pass

Copy link
Copy Markdown
Collaborator

@JackCaoG JackCaoG left a comment

Choose a reason for hiding this comment

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

mostly lgtm

@@ -852,10 +852,10 @@ TEST_F(AtenXlaTensorTest, TestQR) {
for (auto n : dims) {
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.

Can we add test case to cover both complete and reduced mode?

@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Feb 2, 2022

@IvanYashchuk Is the upstream pr going to make it to the pytorch 1.11? We will do our branch cur soon too.

@IvanYashchuk
Copy link
Copy Markdown
Contributor Author

It won't merged for 1.11 branch cut. Because of some internal issues removing of these deprecated functionality is postponed to the next 1.12 release.

@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Feb 3, 2022

@IvanYashchuk Sounds good. We have a large pr we need to merge to pt/xla 1.10 and I was waiting for you to merge your pr first. I guess in this case I will try to merge that giant pr and it might cause some merge conflicts for you.

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