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

Can not run the sample until fix a little code in encoders.py #2

Closed
fs302 opened this issue Jun 24, 2018 · 1 comment
Closed

Can not run the sample until fix a little code in encoders.py #2

fs302 opened this issue Jun 24, 2018 · 1 comment

Comments

@fs302
Copy link

fs302 commented Jun 24, 2018

Hi William,

I clone the code and try run_cora. At first the interpreter raise the dimension problem until I fix the code in encoders.py(line 39) from:

neigh_feats = self.aggregator.forward(nodes, [self.adj_lists[node] for node in nodes],

to

neigh_feats = self.aggregator.forward(nodes, [self.adj_lists[int(node)] for node in nodes],

Then It works fine. I think it is a type issue. Hope it will be helpful for others.

@williamleif
Copy link
Owner

Thanks for pointing this out! The code worked as it was with my package versions (perhaps a pytorch version issue?) and with python2.7, but in any event I pushed that fix you mentioned since that doesn't break anything.

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