Batch Training and DataLoader in PyG #3154
-
Hi, I was trying to train a model in PyTorch Lightning for large graphs. Is it possible to create such batches using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Setting Now |
Beta Was this translation helpful? Give feedback.
Setting
sizes=-1
will get you all neighbors of a node inNeighborSampler
as explained here.Now
NeighborSampler
is depreciated so its better to useNeighborLoader
. InNeighborLoader
although its not mentioned in the docs, and I am not entirely sure, it looks like you can get all neighbors by settingnum_neigbhors=[-1]
, @rusty1s can confirm this.