Is node ordering preserved when batching multiple graphs? #3038
-
I am doing some RL so I would be interested in passing multiple graphs into a data loader and getting node embeddings for multiple graphs. I am wondering whether the node ordering is kept consistent? Here is my actor class
now, imagine I have passed into a data loader two graphs (batch size = 2) and the first graph has, say, 100 nodes, and the second graph has 200 nodes -- also assume WLOG that the node labels for each of the two graphs are ordered exactly from 0 to N-1, where N is total number of nodes in the graph. So graph one has node labels 0, 1, 2, ..., 99, etc -- will the first 100 rows of if someone could clear this up for me that'd be great, thanks 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, that‘s exactly what‘s happening. |
Beta Was this translation helpful? Give feedback.
Yes, that‘s exactly what‘s happening.