-
Couldn't load subscription status.
- Fork 25.7k
linalg.matrix_rank: fix cpp interface + add more overloads
#70575
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 1cccbc4 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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 is still missing adding the same functions down below in the file, right? As it stands, these functions are in the detail:: namespace.
pytorch/torch/csrc/api/include/torch/linalg.h
Lines 419 to 426 in 7180582
| /// See https://pytorch.org/docs/master/linalg.html#torch.linalg.matrix_rank | |
| inline Tensor matrix_rank(const Tensor input, double tol, bool hermitian) { | |
| return detail::matrix_rank(input, tol, hermitian); | |
| } | |
| inline Tensor& matrix_rank_out(Tensor& result, const Tensor input, double tol, bool hermitian) { | |
| return detail::matrix_rank_out(result, input, tol, hermitian); | |
| } |
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!
|
I wonder why do we use the |
|
I wonder just the same. Have not seen it before. |
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.
Looks like this got lost in the shuffle; sorry about that @nikitaved! I'll try and merge this now.
|
@mruberry has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: As per title. cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano Pull Request resolved: #70575 Reviewed By: albanD Differential Revision: D33760541 Pulled By: mruberry fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4
Summary: As per title. cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano Pull Request resolved: pytorch/pytorch#70575 Reviewed By: albanD Differential Revision: D33760541 Pulled By: mruberry fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4 (cherry picked from commit 2d686e0)
Summary: As per title. cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano Pull Request resolved: pytorch/pytorch#70575 Reviewed By: albanD Differential Revision: D33760541 Pulled By: mruberry fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4 (cherry picked from commit 2d686e0)
Summary: As per title. cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano Pull Request resolved: pytorch/pytorch#70575 Reviewed By: albanD Differential Revision: D33760541 Pulled By: mruberry fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4 (cherry picked from commit 2d686e0)
Summary: As per title. cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano Pull Request resolved: pytorch/pytorch#70575 Reviewed By: albanD Differential Revision: D33760541 Pulled By: mruberry fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4 (cherry picked from commit 2d686e0)
As per title.
cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @lezcano