-
Notifications
You must be signed in to change notification settings - Fork 121
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] autogl 0.1.1 is not compactible with torch-geometric 1.6.3 #10
Comments
Thanks for your bug information. We will come back to you later after investigation. |
I've test the graph classification example under python 3.6.10 and autogl 0.1.1 and cannot reproduce the bug. Can you provide more information about the package you have installed? [output of |
Thanks for your prompt reply. Here is my list. Package Version Location alabaster 0.7.12 |
Thanks for your info. I've done some tests and find that the For now, you can just lower your pytorch geometric package by:
Thanks again for your info! |
I confirmed. The code worked with torch-geometric 1.6.1. |
Temporarily override the get method for the PyG datasets to fix issue #10
Temporarily override the get method for the PyG datasets to fix issue #10
Describe the bug
When I run the graph_classification.py code, I got following error.
How can I fix the error? Any advice will be greatly appreciated.
Thanks
`
~/src/AutoGL/examples$ python graph_classification.py
Traceback (most recent call last):
File "graph_classification.py", line 19, in
cv_split=10,
File "/home/user/src/AutoGL/autogl/solver/classifier/graph_classifier.py", line 294, in fit
self.feature_module.fit(dataset.train_split)
File "/home/user/src/AutoGL/autogl/module/feature/base.py", line 116, in fit
dataset = self._rebuild(dataset, _dataset)
File "/home/user/src/AutoGL/autogl/module/feature/base.py", line 57, in _rebuild
data, slices = dataset.collate(datalist)
File "/home/user/miniconda3/envs/grapl/lib/python3.7/site-packages/torch_geometric/data/in_memory_dataset.py", line 128, in collate
dim=data.cat_dim(key, item))
RuntimeError: Sizes of tensors must match except in dimension 0. Got 1 and 2 in dimension 1 (The offending index is 5)
`
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: