-
Notifications
You must be signed in to change notification settings - Fork 147
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
Adding of two sparse tensors does not work #113
Comments
Addition of two |
Is this on your roadmap? |
Yes, it's on the roadmap. |
I implemented addition and subtraction for the moment the following way:
It does the job for me and autograd works this way. |
Looks good! I think this can be made more efficient with custom CUDA kernels, but it's good to support it nonetheless. Are you interested in contributing your solution? |
Hi, In case a simple function is sufficient for you I can contribute that. |
Yes, please :) Really appreciate it. |
* financial metadata * update * update * update * update * update * fix test * reset * update
I tried to add two sparse tensors and failed with the error below.
I am using pytorch 1.6.0 and pytorch_sparse 0.6.8
Here is a minimal example which reproduces my error:
In the above example I would have expected that
add(a,a) == 2 * a
Is that correct or am I am using the wrong function?
And I get the same error for
a + a
The text was updated successfully, but these errors were encountered: