-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Support autograd on Linear with sparse compressed weight. #86137
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86137
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 FailuresAs of commit 05c68b2: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 9fe702d7887277945905967921b68f6e278af837 Pull Request resolved: #86137
@soulitzer you can handle that one? |
/easycla As part of the transition to the PyTorch Foundation, this project now requires contributions be covered under the new CLA. See #85559 for additional details. This comment will trigger a new check of this PR. If you are already covered, you will simply see a new "EasyCLA" check that passes. If you are not covered, a bot will leave a new comment with a link to sign. |
switch(input_.layout()) { | ||
case kSparseCsr: return grad.sparse_mask(input_.to_sparse()).to_sparse_csr(); | ||
case kSparseCsc: return grad.sparse_mask(input_.to_sparse()).to_sparse_csc(); | ||
// BSR and BSC should be handled via implement sparse_compressed_mask | ||
default: ; // fall back to unsupported input layout error | ||
} |
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.
After resolving #80542, this could be replaced by
return grad.sparse_mask(input_.to_sparse()).to(input_.layout());
[ghstack-poisoned]
ghstack-source-id: 2eb0d3d2146ddd890ee4baa836868db6afdbc73a Pull Request resolved: #86137
[ghstack-poisoned]
ghstack-source-id: 50aa539aad890c295bdf31d83233a4d57d4466d0 Pull Request resolved: #86137
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
…86137) Summary: Pull Request resolved: #86137 Approved by: https://github.com/cpuhrsch Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/f104490d635747e4164e954d36954ea3a01731a5 Reviewed By: seemethere Differential Revision: D40167118 Pulled By: seemethere fbshipit-source-id: 2b61f89c7ba514e29acbf91fce5c02097198cf21
Stack from ghstack (oldest at bottom):
cc @alexsamardzic @nikitaved @cpuhrsch @amjames @bhosmer