-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on line 132 in the 'tudataset.py' file #5360
Comments
Mh, if |
The 'If' condition is not correct. I think the 'if' condition below is the solution for the 2.1.0 version. if not(isinstance(out, tuple) and len(out) == 3) If the two conditions are True, the RumtimeError appears, and, inversely, if one of the two conditions is False. Thank you for the quick response. |
Oh, you are right. Is has to be |
🐛 Describe the bug
Hello,
There is a bug on line 132 in the 'tudataset.py' file for the 2.1.0 version of Pytorch Geometric.
The message error is:
ValueError: not enough values to unpack (expected 3, got 2)
I fixed it by removing the 'self.sizes' part and replacing the 'num node_labels', 'num_node attributes', 'num_edge_labels' and 'num_edge attributes' methods with those from version 2.0.4.
I have attached a screenshot (PNG image) of my solution. I hope this will be useful.
Stevan Stanovic
Environment
conda
,pip
, source):conda create -n test python=3.9.12
conda activate test
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cu116.html
torch-scatter
):torch 1.12.1+cu116
torch-cluster 1.6.0
torch-geometric 2.1.0.post1
torch-scatter 2.0.9
torch-sparse 0.6.15
torch-spline-conv 1.2.1
torchaudio 0.12.1+cu116
torchvision 0.13.1+cu116
The text was updated successfully, but these errors were encountered: