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

torch.nn.modules.module.ModuleAttributeError: 'RGCNConv' object has no attribute 'att' #7

Closed
lukhofai opened this issue Oct 6, 2020 · 2 comments

Comments

@lukhofai
Copy link

lukhofai commented Oct 6, 2020

Hi there,

Very interesting paper. However, When I train it, it shows ' 'RGCNConv' object has no attribute 'att'', When I look at the documentation in pytorch, there is no such attribute as well. Please check it, cheers.

Regards

@lukhofai
Copy link
Author

lukhofai commented Oct 6, 2020

Sorry, I believe that was a problem with pytorch geometric version's problem.

@lukhofai lukhofai closed this as completed Oct 6, 2020
@siyarvurucu
Copy link
Contributor

I had the same problem with pytorch geometric version 1.6.1. It can be fixed with the following change:

In train_eval.py, line 170-171

gconv.att,
gconv.basis.view(gconv.num_bases, -1)

to

gconv.comp,
gconv.weight.view(gconv.num_bases, -1)

Source: docs of versions 1.4.1 and the latest (1.6.1)

https://pytorch-geometric.readthedocs.io/en/1.4.1/_modules/torch_geometric/nn/conv/rgcn_conv.html
https://pytorch-geometric.readthedocs.io/en/latest/_modules/torch_geometric/nn/conv/rgcn_conv.html#RGCNConv

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