Skip to content

[TorchFix] Add torch.solve as a removed function #4705

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

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

kit1980
Copy link
Contributor

@kit1980 kit1980 commented Nov 7, 2023

Add torch.solve as a removed function (I somehow missed it before and noticed after pytorch/tutorials#2642).

Also added a mechanism to show reference links in the error messages.

Copy link

vercel bot commented Nov 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
torchci ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 2:02am

@kit1980 kit1980 force-pushed the sdym/torchfix-solve branch from c0ed87d to a25c3b1 Compare November 7, 2023 01:28
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 7, 2023
@kit1980 kit1980 force-pushed the sdym/torchfix-solve branch from a25c3b1 to 83da406 Compare November 7, 2023 01:48
@kit1980 kit1980 changed the title WIP [TorchFix] Add torch.solve as a removed function Nov 7, 2023
@kit1980 kit1980 force-pushed the sdym/torchfix-solve branch from 83da406 to 342314e Compare November 7, 2023 01:50
@kit1980 kit1980 force-pushed the sdym/torchfix-solve branch from 342314e to 5c1d68b Compare November 7, 2023 02:02
@kit1980 kit1980 marked this pull request as ready for review November 7, 2023 02:03
@kit1980 kit1980 requested review from malfet and a team November 7, 2023 02:03

### TOR001 Use of removed function

#### torch.solve
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a doc/page that calls out this function as deprecated? If so, what do you think of linking to it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's removed from the docs.
The YAML in the PR has links to deprecate and remove PRs, I plan later to use these links to generate some docs.


This function was deprecated since PyTorch version 1.9 and is now removed.

`torch.solve` is deprecated in favor of `torch.linalg.solve`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like we still mention torch.solve in our docs. Could you update that ref too please?

https://pytorch.org/docs/stable/complex_numbers.html
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good find! I'll update that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@malfet malfet merged commit 50dfe39 into main Nov 9, 2023
@malfet malfet deleted the sdym/torchfix-solve branch November 9, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants