-
Hi all! I am running Laplacianeigenvector positional encoding on my torch geometric dataset, however, I am unsure about whether the PE matrix returned is in the same order as in the node features in the torch dataset. Please can somebod confirm? many thanks. code:
now 'laplacian_encoding_pe' matrix is added as expected, but is the order of the matrix the same as the node features (data.x)? so is PE[0] the positional encoding for node 0 (as in data.x[0]) and so on Many thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, this should work. I added a test to confirm: #8087 |
Beta Was this translation helpful? Give feedback.
-
Hi @rusty1s , thank you very much for confirming! would it be possible to implement an option for padding if the selected thank you! |
Beta Was this translation helpful? Give feedback.
Yes, this should work. I added a test to confirm: #8087