Skip to content
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 report #11

Closed
DLwbm123 opened this issue Jan 8, 2021 · 2 comments
Closed

Bug report #11

DLwbm123 opened this issue Jan 8, 2021 · 2 comments

Comments

@DLwbm123
Copy link

DLwbm123 commented Jan 8, 2021

Hi! Thanks for sharing the code. The data loader raises an AttributeError when I run the code in unsupervised_TU. It seems that the data in the Batch is a tuple (data and data_aug):

(Data(edge_attr=[38, 4], edge_index=[2, 54], x=[17, 7], y=[1]), Data(edge_attr=[38, 4], edge_index=[2, 54], x=[17, 1], y=[1]))
But in the source code of torch geometric, the data is used as "keys = [set(data.keys) for data in data_list]". This raises the error:

AttributeError: 'tuple' object has no attribute 'keys'.

Could you please help me with this bug? The version of my torch geometric is 1.3.2. Thanks!

@yyou1996
Copy link
Collaborator

yyou1996 commented Jan 8, 2021

Hi @DLwbm123,

Thank you for your interest. Would you mind trying torch_geometric>=1.5.0? I think unsupervised_TU needs a higher version of it.

@DLwbm123
Copy link
Author

Thanks! It works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants