Segmentation fault (core dump) on NeighborLoader #4640
-
Hi everyone, I made a custom dataset.
Dataset: Data(x=[5873395, 156], edge_index=[2, 84480575], y=[5873395], num_classes=52, train_mask=[5873395], val_mask=[5873395], test_mask=[5873395]): Number of graphs: 7 Number of nodes: 5873395 I will get a segmentation fault (core dump) When I run the following lines of code. No other info showed.
Do you know how it would cause the segmentation fault? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think this is quite likely to occur if your edge_index refers to nodes that are not in the graph (i.e |
Beta Was this translation helpful? Give feedback.
-
Hi @JiaruiWang - sorry I meant the edge_index in your
If you can provide the dataset I can look in more detail |
Beta Was this translation helpful? Give feedback.
I think this is quite likely to occur if your edge_index refers to nodes that are not in the graph (i.e
max(edge_index) > x.shape[0]
). Maybe worth checking that as a first step.