-
Notifications
You must be signed in to change notification settings - Fork 80
run code on PROTEINS dataset error #7
Comments
When I set testdata batchsize=2 (test_loader = DataLoader(test_set,batch_size=2,shuffle=False)), it will be fine. However, when I run then code in dataset ENZYMES, it report the following error:
I am not sure how to fix this bug. |
I encountered the same error. I opened an issue at pytorch-geometric repo here |
I identified the issue in the SAGPool score = self.score_layer(x, edge_index).squeeze() will actually squeeze the tensor to a 0-dimensional tensor if the input has shape score = self.score_layer(x, edge_index).squeeze(-1) fixes the error. |
Thank you very much! |
Hi, thanks for your code. But when I run python main.py --dataset PROTEINS, there is an error as follows:
The text was updated successfully, but these errors were encountered: