-
Hi everyone, I was trying to understand the code and the dataset in pytorch_geometric examples. I don't understand how is the mask in PROTEINS dataset generated, what does it represent and how is DiffPool making use of it? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Apr 29, 2022
Replies: 1 comment 4 replies
-
The |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
lisiq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
mask
is generated by theToDense
transform, and indicates which nodes are valid nodes and which nodes were added due to padding reasons in order to create a dense adjacency matrix of shape[batch_size, max_num_nodes, max_num_nodes]
. As such,mask
is a[batch_size, max_num_nodes]
matrix.