Replies: 2 comments 7 replies
-
I think PyG's |
Beta Was this translation helpful? Give feedback.
2 replies
-
Do you have a small example to reproduce? The import torch
from torch_geometric.data import Data
from torch_geometric.loader import DataLoader
data = Data(x=torch.randn(5, 4))
data_list = [(data, data), (data, data)]
loader = DataLoader(data_list, batch_size=2)
for batch in loader:
print(batch) |
Beta Was this translation helpful? Give feedback.
5 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, my datalist is a list of tuple objects (graph1, graph2).
Then I create dataloader by
When I ran the code, it reported error AttributeError: 'list' object has no attribute 'size'. My previous code was running without any error. But currently, it failed. I appreciate if you could give any suggestion.
The errors are as follows:
python 3.9.12
torch 2.0.1
torch-geometric 2.3.1
Beta Was this translation helpful? Give feedback.
All reactions