-
Notifications
You must be signed in to change notification settings - Fork 25.7k
use Vᴴ instead of Vh where appropriate in SVD docs #61037
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
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit e37e522 (more details on the Dr. CI page and at hud.pytorch.org/pr/61037):
ci.pytorch.org: 1 failedPreview docs built from this PR This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
torch/linalg/__init__.py
Outdated
| The gradient will also be numerically unstable when :attr:`A` has small singular | ||
| values, as it also depends on the computaiton of :math:`\frac{1}{\sigma_i}`. | ||
| .. warning:: Backpropagation is only supported for input matrices with at most one zero eigenvalue. |
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.
I feel like the warning above actually mentions most of this already. Sorry for missing that.
We should fix the formatting of Vh though to be V or V^H with math formatting.
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.
it looks like a similar warning exists in both variants of the function. So revert changes to both files and edit this file to use V^H instead of Vh? Should I do that across the board for this function or just the nearest warning?
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.
I see some place already using Vᴴ. How does this look?
Differential Revision: [D29491985](https://our.internmc.facebook.com/intern/diff/D29491985) [ghstack-poisoned]
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.
LGTM!
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Differential Revision: [D29491985](https://our.internmc.facebook.com/intern/diff/D29491985) [ghstack-poisoned]
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Differential Revision: [D29491985](https://our.internmc.facebook.com/intern/diff/D29491985) [ghstack-poisoned]
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Differential Revision: [D29491985](https://our.internmc.facebook.com/intern/diff/D29491985) [ghstack-poisoned]
|
@dagitses has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
Note that when discussed improving linear algebra module's documentation it was proposed to use Unicode characters for mathematics, but we decided that LaTeX should be used instead. See #54878 (comment) and discussion in that issue. Here in cc: @lezcano |
|
As @IvanYashchuk mentioned, there's both the discussion about not using unicode symbols in the docs due to problems in the rendering. Now, the changes in this PR are not correct, as print(torch.linalg.svd(torch.rand(3, 4)).Vh) |
Stack from ghstack:
Differential Revision: D29491985