batch size 1 throws index error #4758
alex-de-zwart
started this conversation in
General
Replies: 1 comment 2 replies
-
This likely indicates that |
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.
-
I'd like to benchmark different models also in terms of latency, but when I use a batch size of 1 it torch geometric message passing throws the following error:
Dimension out of range (expected to be in range of [-1, 0], but got -2)
Edge_index is created with the following code
class GraphDataset(pyg_data.InMemoryDataset):
def init(self, root, file_name, transform=None, pre_transform=None):
self.file_name = file_name
super().init(root, transform, pre_transform)
self.data, self.slices = torch.load(self.processed_paths[0])
Beta Was this translation helpful? Give feedback.
All reactions