Replies: 1 comment 6 replies
-
What happens if you run for data in dataset:
data.validate() It looks like your |
Beta Was this translation helpful? Give feedback.
6 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.
-
I have created a custom data loader to load pytorch geometric dataset
The original is a list of five (keeping it small for testing ) data looks like
[Data(x=[20, 75], edge_index=[2, 38]), Data(x=[20, 75], edge_index=[2, 36]), Data(x=[20, 75], edge_index=[2, 36]), Data(x=[12, 75], edge_index=[2, 22]), Data(x=[12, 75], edge_index=[2, 22])]
I am loading the dataset as
dataset = CustomDataset(states_pytorch_geom, states1_pytorch_geom, output_list) custom_loader = DataLoader(dataset, batch_size=4, shuffle=False)
Then I load the dataset in the loop as:
for data in custom_loader:
print(data['data'].x)
print(data['data'].edge_index)
The result shape of dataset in batch looks like
and for edge index looks like
Since, the data is of shape 72,75 and shuffle is False I originally expected the edge index to have maximum index till 71. But the result I get looks like
Can someone let me know why the index are jumping from 59 to 81 not 61 ?
Beta Was this translation helpful? Give feedback.
All reactions