Replies: 1 comment 2 replies
-
The What you could do is pass it a list of |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have written my own custom data and dataset objects. I am using PyG dataloader but the output I am getting is not batched. I am pasting the relevant classes below, but in short, I am getting a CustomDataset with a single graph, i.e. there is a single x tensor with dimensions [N,t,f] rather than multiple tensors with dimension [batch_size * t, f] (where N is the total number of "graphs" in the sample, t is the number of nodes per graph and f is the number of node features).
How I am creating the dataset and dataloader:
And the corresponding custom data objects (I have a few more attributes in MyData that I left out for simplicity):
I am guessing I need to override some of the class functions (maybe collate_fn) but it's not clear to me how.
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions