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

Convert dense matrix to sparse #2885

Closed
ezyang opened this issue Sep 28, 2017 · 1 comment
Closed

Convert dense matrix to sparse #2885

ezyang opened this issue Sep 28, 2017 · 1 comment
Labels
module: sparse Related to torch.sparse

Comments

@ezyang
Copy link
Contributor

ezyang commented Sep 28, 2017

Some sample code for a specific dimension is at https://discuss.pytorch.org/t/how-to-convert-a-dense-matrix-to-a-sparse-one/7809 but it would be good to generalize it to work with arbitrary dimensions and put it in the library somewhere.

@weiyangfb
Copy link
Contributor

closing this since to_sparse is implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: sparse Related to torch.sparse
Projects
Development

No branches or pull requests

2 participants