Skip to content
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

Add aten::_to_sparse_csc() and aten::_to_sparse_csr #1313

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

cfgfung
Copy link
Contributor

@cfgfung cfgfung commented Jan 21, 2025

Important note
This PR has to wait for an upstream PR - pytorch/pytorch#144722

Build Environment:
PyTorch - Main Branch (9f150786bb8b756f0fffb8aeb06d2a6881132e05)
OneAPI Basekit 2025.1

Result:
image

Test Case
The current test case will trigger irrelevant error message - "RuntimeError: device type of values (xpu) must be CPU or CUDA or Meta".I have manually checked the values using the test cases. They are correct. @daisyden Shall we add those tests into the skip_list or is there another method?

xytintel and others added 6 commits January 22, 2025 23:29
Reset to
bfdbaf4

---------

Co-authored-by: mengfei25 <[email protected]>
Co-authored-by: LuFengqing <[email protected]>
Co-authored-by: Ratnam Parikh <[email protected]>
Co-authored-by: Feng Yuan <[email protected]>
…epresentation of SparseCsrTensor.

Changed the format of the SparseCsrTensorMathKernels.cpp
@cfgfung cfgfung force-pushed the _to_sparse_csrAnd_to_sparse_csc branch from f3e3478 to 616e16e Compare January 23, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants