Port SVD to ATen, enable batching for matrix inputs#21588
Closed
vishwakftw wants to merge 19 commits intopytorch:masterfrom
Closed
Port SVD to ATen, enable batching for matrix inputs#21588vishwakftw wants to merge 19 commits intopytorch:masterfrom
vishwakftw wants to merge 19 commits intopytorch:masterfrom
Conversation
14 tasks
Contributor
Author
|
Test failures are expected. I removed the TH bindings. |
Contributor
Author
|
I’ll investigate the test failures, they are related to this PR. |
…tch_svd function and use at::svd instead
Contributor
Author
|
@pytorchbot rebase this please |
Contributor
Author
|
@pytorchbot rebase this please |
Contributor
|
@nairbv can you review this, please? |
nairbv
reviewed
Jul 12, 2019
nairbv
reviewed
Jul 12, 2019
nairbv
reviewed
Jul 12, 2019
- Add a comment about why empty tensors are created on the CPU while the input is a CUDA tensor in _create_U_S_VT - Print matrix in SVD doc example - strides() --> stride() in docs
Collaborator
|
@pytorchbot rebase this please |
Collaborator
|
looks like failing tests were due to whatever this fixed: |
Contributor
Author
|
Yes, I’ll manually rebase. |
Collaborator
|
LGTM |
nairbv
approved these changes
Jul 15, 2019
Contributor
facebook-github-bot
left a comment
There was a problem hiding this comment.
@nairbv is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
zdevito
pushed a commit
to zdevito/ATen
that referenced
this pull request
Jul 15, 2019
Summary: Changelog: - Port SVD TH implementation to ATen/native/BatchLinearAlgebra.cpp - Port SVD THC implementation to ATen/native/cuda/BatchLinearAlgebra.cu - Allow batches of matrices as arguments to `torch.svd` - Remove existing implementations in TH and THC - Update doc string - Update derivatives to support batching - Modify nuclear norm implementation to use at::svd instead of _batch_svd - Remove _batch_svd as it is redundant Pull Request resolved: pytorch/pytorch#21588 Test Plan: - Add new test suite for SVD in test_torch.py with port to test_cuda.py - Add tests in common_methods_invocations.py for derivative testing Differential Revision: D16266115 Pulled By: nairbv fbshipit-source-id: e89bb0dbd8f2d58bd758b7830d2389c477aa61fb
Contributor
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Changelog: - Port SVD TH implementation to ATen/native/BatchLinearAlgebra.cpp - Port SVD THC implementation to ATen/native/cuda/BatchLinearAlgebra.cu - Allow batches of matrices as arguments to `torch.svd` - Remove existing implementations in TH and THC - Update doc string - Update derivatives to support batching - Modify nuclear norm implementation to use at::svd instead of _batch_svd - Remove _batch_svd as it is redundant Pull Request resolved: pytorch#21588 Test Plan: - Add new test suite for SVD in test_torch.py with port to test_cuda.py - Add tests in common_methods_invocations.py for derivative testing Differential Revision: D16266115 Pulled By: nairbv fbshipit-source-id: e89bb0dbd8f2d58bd758b7830d2389c477aa61fb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog:
torch.svdTest Plan: