Skip to content

Conversation

@IvanYashchuk
Copy link
Collaborator

Cholesky decomposition now works for complex inputs.

Fixes #44637.

@IvanYashchuk IvanYashchuk changed the title [WIP] Added support for complex input for Cholesky decomposition Added support for complex input for Cholesky decomposition Sep 17, 2020
@dr-ci
Copy link

dr-ci bot commented Sep 17, 2020

💊 CI failures summary and remediations

As of commit 2c02725 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

1 failure confirmed as flaky and can be ignored:

  • pytorch_macos_10_13_py3_test

ci.pytorch.org: 1 failed


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 42 times.

@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #44895 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #44895   +/-   ##
=======================================
  Coverage   67.83%   67.83%           
=======================================
  Files         384      384           
  Lines       49962    49962           
=======================================
+ Hits        33892    33893    +1     
+ Misses      16070    16069    -1     
Impacted Files Coverage Δ
torch/testing/_internal/expecttest.py 78.57% <0.00%> (+1.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e5045e...2c02725. Read the comment docs.

@IvanYashchuk
Copy link
Collaborator Author

@anjali411, regarding your comments about changes random_fullrank_matrix_distinct_singular_value. Now I think those changes are unnecessary and unrelated to current PR, so I removed them, and use random_symmetric_pd_matrix tests pass well.

@IvanYashchuk IvanYashchuk added module: complex Related to complex number support in PyTorch module: linear algebra Issues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmul labels Sep 19, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@anjali411 anjali411 left a comment

Choose a reason for hiding this comment

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

We should also update the backward definition for cholesky operation and gradcheck test for complex. @IvanYashchuk would you like to create a follow-up PR for that? you can find the gradient formula for cholesky decomposition in https://arxiv.org/pdf/1701.00392.pdf 4.53 and 4.54

@IvanYashchuk
Copy link
Collaborator Author

We should also update the backward definition for cholesky operation and gradcheck test for complex. @IvanYashchuk would you like to create a follow-up PR for that? you can find the gradient formula for cholesky decomposition in https://arxiv.org/pdf/1701.00392.pdf 4.53 and 4.54

Yes, I'll do that.

@facebook-github-bot
Copy link
Contributor

@anjali411 merged this pull request in 5b20bf4.

@IvanYashchuk IvanYashchuk deleted the cholesky-complex-cuda branch September 23, 2020 16:17
facebook-github-bot pushed a commit that referenced this pull request Sep 29, 2020
Summary:
Updated `cholesky_backward` to work correctly for complex input.
Note that the current implementation gives the conjugate of what JAX would return. anjali411 is that correct thing to do?
Ref. #44895

Pull Request resolved: #45267

Reviewed By: bwasti

Differential Revision: D23975269

Pulled By: anjali411

fbshipit-source-id: 9908b0bb53c411e5ad24027ff570c4f0abd451e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: complex Related to complex number support in PyTorch module: linear algebra Issues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmul open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complex-valued Cholesky decomposition

6 participants