-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fixed crash when calling pad_packed_tensor when packed with cuda tensors and ensure_sorted=false due to indexing with tensors on different devices #115028
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/115028
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 2 PendingAs of commit 4b63074 with merge base a6736ac ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Can you write a test for this failure? |
Sure, added |
Cool, thank you and one more think, would you mind making the PR title more descriptive? |
Sure, done :) |
@pytorchbot merge |
This PR needs to be approved by an authorized maintainer before merge. |
@pytorchbot merge |
Looks like need to fix some formatting |
Fixed the whitespace issue. |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
Thanks for the patience - I got lintrunner running locally and applied the patches. All fixed now. Thanks! |
Hi @drisspg , is there anything else I can do to help get this fix in? Thanks! |
hmm I don't know why this so did you run make setup_lint
lintrunner -a |
Yeah, after the merge failed I ran again: lintrunner init
lintrunner -a I believe that one of the lines of the test was > 80 chars, so it split it into two lines. |
hmm I would try rebasing and then re-initing the lint runner and running again there might be an update on main |
Done! It changed a few spacing stuff |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ors and ensure_sorted=false due to indexing with tensors on different devices (pytorch#115028) Fixes pytorch#115027 Fix in csrc as done in the python code [here](https://github.com/pytorch/pytorch/blob/main/torch/nn/utils/rnn.py#L338). Pull Request resolved: pytorch#115028 Approved by: https://github.com/drisspg
Fixes #115027
Fix in csrc as done in the python code here.