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
Enable cadd_sparse for BFloat16 on CPU #96767
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/96767
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit f824aad: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@nikitaved, Could you please review my changes? |
test/test_sparse.py
Outdated
y = y.float().cuda() | ||
x = x.float() | ||
y = y.float() | ||
if device == 'cuda': |
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 shouldn't be necessary since device
is passed to _gen_sparse
above.
In general it's strange that we annotate this with @dtypes(torch.double, torch.cdouble)
and then convert to float right away.
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.
Thanks, I'll remove this part and change dtypes
to torch.float
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.
See inline comments around test. Otherwise code change looks like.
9f93a0b
to
22ba0c9
Compare
@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: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. You can rebase and merge by leaving the following comment on this PR: Details for Dev Infra teamRaised by workflow job |
22ba0c9
to
f824aad
Compare
@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 |
Enabling **cadd_sparse** operation for BFloat16 on CPU to support BFloat16 operations in GNN libraries. Pull Request resolved: #96767 Approved by: https://github.com/jgong5, https://github.com/cpuhrsch
Enabling cadd_sparse operation for BFloat16 on CPU to support BFloat16 operations in GNN libraries.