Input of square of adjacency matrix in GCN #2442
Unanswered
shrimonmuke0202
asked this question in
Q&A
Replies: 3 comments 1 reply
-
You can directly pre-compute that, e.g., by utilizing
where |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can I also pass the cube of the adjacency matrix using same way ?
…On Thu, 22 Apr 2021, 12:52 pm Matthias Fey, ***@***.***> wrote:
You can directly pre-compute that, e.g., by utilizing torch-sparse:
edge_index, _ = torch_sparse.spspmm(edge_index, None, edge_index, None, N, N, N)
where N denotes the number of nodes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ7MTCWQTS5LN7EVTZLYZX3TJ7FDRANCNFSM43LBYJUA>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Can you give me an example ?
…On Thu, 22 Apr 2021, 1:03 pm Matthias Fey, ***@***.***> wrote:
Yes, but keep in mind that your adjacency matrix can get pretty dense :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2442 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ7MTCW6PAVUVQVAQKDK2MLTJ7GMPANCNFSM43LBYJUA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I feed the square of the adjacency matrix of a graph in the GCN module?
Beta Was this translation helpful? Give feedback.
All reactions