How to create the Dataloader #3358
Unanswered
chenyuqi990215
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Saving your data as data = Data(x=x, edge_index=edge_index, seq=seq) where x = ... [N, C]
edge_index = ... [2, E]
seq = [1, D] should already give you a x = ... [B * N, C]
edge_index = ... [2, B * E]
seq = [B, D] which can directly be used as input to |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi,
I'm pretty new to the field of graph neural networks and pytorch geometric.
Each data point in my data consists of a graph with N point and E edges (e.g. features with dimension NC and edge_index with dimension E2), together with an input sequence (e.g. dimension 1*D). How could I create such a dataset and enable mini-batch sampling.
Is it possible to solve the problem with rewriting the collate_fn while create DataLoader?
(I would like to use GCNConv in torch_geometry, therefore I would like for each batch sample, features with dimension (B*N)C, edge_indexs with dimension (BE)2 and sequences with dimension BN)
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions