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
vmap support for torch.linalg.vander #91749
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/91749
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 FailuresAs of commit 9a5a7d4: NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…pytorch into vander_vmap_addition
@jazzysoggy Thank you for the PR Looking at the CI failure link, it looks like you should add entry in (do refer other entries in that file) https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/functorch/BatchRulesDecompositions.cpp This is because |
@kshitij12345 How do I fix the failure due to the test passing instead of failing? |
From the CI failure, we can see that I would suggest to Let me know if you need more suggestions :) CI Failure Snippet:
|
@@ -144,7 +144,7 @@ TORCH_LIBRARY_IMPL(aten, FuncTorchBatchedDecomposition, m) { | |||
OP_DECOMPOSE2(less, Tensor ); | |||
OP_DECOMPOSE(linalg_cond); | |||
OP_DECOMPOSE(linalg_cholesky); | |||
OP_DECOMPOSE(linalg_det); | |||
OP_DECOMPOSE(c); |
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 change looks unintended.
@@ -159,6 +159,8 @@ TORCH_LIBRARY_IMPL(aten, FuncTorchBatchedDecomposition, m) { | |||
OP_DECOMPOSE(linalg_svd); | |||
OP_DECOMPOSE(linalg_svdvals); | |||
OP_DECOMPOSE(linalg_tensorinv); | |||
OP_DECOMPOSE(linalg_vander); | |||
OP_DECOMPOSE(linalg_vander, int); |
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 think this line is incorrect and unnecessary.
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.
#91749 is still missing, but otherwise it should be good.
Consider running locally the tests in test/functorch
for linalg_vander
to avoid running through too many CI cycles.
@jazzysoggy It seems that you will also have to remove the following xfail as this PR implements batching rule for
Post the change, you can verify it locally by |
the failures are relevant. Please run locally the tests in |
Can I ignore the current errors seeing as they do not to the actual testing, which passed, but rather the uploading of the test results and missing a "typing extension" |
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.
Right, thank you!
@pytorchbot merge -f "errors are unrelated" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Adds vmap support for torch.linalg.vander in a similar manner to how view_as_complex is implemented.
#91700
cc @zou3519 @Chillee @samdow @soumith @kshitij12345 @janeyx99