-
Notifications
You must be signed in to change notification settings - Fork 55
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
How to apply HGP-SL to dense batched adjacency matrix #9
Comments
Hi, The current version only support sparse matrix. If you want to use dense matrix, the following parts should be modified:
|
Thanks for your reply, sorry to bother you again.
Looking forward to receiving your reply. |
Hi, Sorry for the late reply. 1, The code of NodeInformationScore class indeed perform matrix multiplication in Eq(2), but they are in sparse multiplication form. You need to transform them in the dense form. 2, Ye, you only need to pass the weight, but you need to re-write the function, maybe you can use this reference |
Hi, thanks for your code.
In my code, I must change my batched sparse adjacency matrices to a single dense batched adjacency matrix since my adjacency matrix is very big.
However, when I apply HGP-SL to my code, the error happens
ValueError: too many values to unpack (expected 2)
So I check the code, and I found
row, col = edge_index
in layers.py. which means that the parameter passes to HGP-SL must be sparse adjacency matrix. I really want to use HGP-SL in my code, but I don't know how to change the code in HGP-SL so that I can use dense batched adjacency matrix as the parameter.The text was updated successfully, but these errors were encountered: