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
Elementwise multiplication #343
Comments
Yes, this should work already, e.g., |
This is great, thanks so much.
Matthias Fey ***@***.***> schrieb am Mo., 2. Okt. 2023, 01:09:
… Yes, this should work already, e.g., sparse_mat * sparse_mat or sparse_mat
* dense_mat.
—
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJQ5FRFBOK6TOIWNCNYDP5LX5JZDNANCNFSM6AAAAAA5O7XWCE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
What am I missing here?
Library Code seems to be
My code:
Thanks for your help! |
Hi, I am encountering the exact same issue. I have tried to work around it by concatenating rows, cols and values, then coalescing using It looks like |
This op was implemented in #323, and it is not yet released. Let me create a new version ASAP. |
Hi, I'm running into problem trying to do sparse * dense elementwise multiplication. I think it may be related to how I create the sparse tensor. I sample from a larger sparse tensor and then concatenate the rows; now if I try to do
Am I doing something weird here? |
Looking at the source code it looks like this only works for vectors and sparse matrices (Just noticed the comment above)? What is the best way to do sparse * dense elementwise multiplication between matrices? Is this a safe efficient alternative?
|
If you wanna do sparse + dense, then why not convert the sparse matrix to a dense matrix? The result will be dense anyway. Would this work for you? |
I solved it by doing that now, thank you for the response and suggestion. |
If you don't want to convert to dense, you can also just do
|
Hello,
is there any way to do element-wise matrix multiplication with your library?
Thank you very much!
The text was updated successfully, but these errors were encountered: