-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Remove deprecated torch.lstsq #70980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slowFor more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit aaf7113 (more details on the Dr. CI page):
🕵️ 20 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
lezcano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left a small comment out of curiosity, but it LGTM
|
|
||
| // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ legacy_lstsq ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| std::tuple<Tensor, Tensor> legacy_lstsq_cuda(const Tensor &B, const Tensor &A) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit odd. Did we reimplement all the calling code for magmaGels within linalg_lstsq_cuda? I guess we did because of the TORCH_WARN_ONCE that's here, but that seems so odd.
lstsq is a mess, it could do with a reasonable clean-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Porting of TH version of lstsq to ATen was done independently from implementing torch.linalg.lstsq.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic to get rid of this code then (same applies to all the other PRs, but to this one in particular).
|
@pytorchbot ciflow rerun |
|
Hi @IvanYashchuk , Is this #71222 a known issue? |
|
@de-gozaru , I have had some issues with the determinism of linalg.lstsq while working on its forward/backward ADs. If my memory serves me well, it was the case with only wide or tall matrices. |
|
@pytorchbot merge -g |
|
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failedReason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge failedReason: The following mandatory check(s) are pending/not yet run (Rule
Dig deeper by viewing the pending checks on hud Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -g |
Merge failedReason: The following mandatory check(s) are pending/not yet run (Rule
Dig deeper by viewing the pending checks on hud Details for Dev Infra teamRaised by workflow job |
|
@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge -g |
|
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failedReason: Command Details for Dev Infra teamRaised by workflow job |
|
I resolved the merge conflict. |
|
@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge -g |
|
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failedReason: 1 additional jobs have failed, first few of them are: trunk Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f "Unrelated ROCm issue, tests passed previously" |
|
@pytorchbot successfully started a merge job. Check the current status here. |
|
Hey @IvanYashchuk. |
The time has come to remove deprecated linear algebra related functions. This PR removes `torch.lstsq`. There's a note in `tools/codegen/gen.py` about `lstsq` schema in `native_function.yaml` that I will not remove: https://github.com/pytorch/pytorch/blob/87139d8532c99ff5dbeef1b97948d71793aa7851/tools/codegen/gen.py#L734-L770 cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @lezcano Pull Request resolved: #70980 Approved by: https://github.com/lezcano, https://github.com/kit1980
The time has come to remove deprecated linear algebra related functions. This PR removes
torch.lstsq.There's a note in
tools/codegen/gen.pyaboutlstsqschema innative_function.yamlthat I will not remove:pytorch/tools/codegen/gen.py
Lines 734 to 770 in 87139d8
cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @lezcano