Batching problems of Graph #8036
Unanswered
borismartirosyandenovo
asked this question in
Q&A
Replies: 1 comment
-
If I understand correctly, you want to customize the stacking dimensions when batching tensors in PyG data, kindly refer to here for more info. |
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.
-
Dear community,
I have problems with pytorch_geometric. I am training a graph neural network, and I encounter with a lot of problems. Firstly my Data object consist from x, edge_attr, edge_index, target and shortest_path_attr which is the shortest path matrix retrieved from Floyd-Warshall algorithm and its dimensionality is NxN where N is the number of nodes. When I try to give it to dataloader I have problems with Batching and simply tensors do not stack because of their difference of dimensions (the main problem comes from shortest path matrix). But when I pad the matrices and dataloader problem solves, I encounter another problem: my model doesn't accept the batched tensor of X attributes (node features) because the dimensions of model and data do not match if I give a batch containing more then 1 graph info. What can I do, I would appreciate any help you can provide!
Beta Was this translation helpful? Give feedback.
All reactions