Skip to content

Fixed issue with GradTrackingTensor not properly propagating sparse layout#165765

Closed
cleonard530 wants to merge 1 commit intopytorch:mainfrom
cleonard530:grad_tracking_sparse
Closed

Fixed issue with GradTrackingTensor not properly propagating sparse layout#165765
cleonard530 wants to merge 1 commit intopytorch:mainfrom
cleonard530:grad_tracking_sparse

Conversation

@cleonard530
Copy link
Contributor

Fixes #164286

Fixed issue with GradTrackingTensor not properly propagating sparse layout.

@ezyang @jcaip

…ayout. Added a unit test to make sure GradTrackingTensor now produces the right layout.

Co-authored-by: Claude 4.5 Sonnet (Anthropic) through Cursor
Signed-off-by: Chris Leonard <chleonar@redhat.com>
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 17, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165765

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 72e33ec with merge base 5d4da26 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@cleonard530
Copy link
Contributor Author

@pytorchbot label "release notes: sparse"

@pytorch-bot pytorch-bot bot added the release notes: sparse release notes category label Oct 17, 2025
@ezyang
Copy link
Contributor

ezyang commented Oct 17, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 17, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
…ayout (pytorch#165765)

Fixes pytorch#164286

Fixed issue with GradTrackingTensor not properly propagating sparse layout.

@ezyang @jcaip
Pull Request resolved: pytorch#165765
Approved by: https://github.com/ezyang
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
…ayout (pytorch#165765)

Fixes pytorch#164286

Fixed issue with GradTrackingTensor not properly propagating sparse layout.

@ezyang @jcaip
Pull Request resolved: pytorch#165765
Approved by: https://github.com/ezyang
@cleonard530 cleonard530 deleted the grad_tracking_sparse branch November 18, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: sparse release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GradTrackingTensor does not copy layout (issue with torch.sparse)

4 participants