mims-harvard / SubGNN

Subgraph Neural Networks (NeurIPS 2020)
https://zitniklab.hms.harvard.edu/projects/SubGNN
MIT License
185 stars 33 forks source link

Bug #9

Closed leaf-ygq closed 3 years ago

leaf-ygq commented 3 years ago

Hello, thanks for helping me solve last bug about "KeyError"! When I ran the code last night, I encountered another bug: TypeError: backward() missing 1 required positional argument: 'optimizer_idx'

1 2

Would you mind helping me deal with it?

EmilyAlsentzer commented 3 years ago

Hi @leaf-ygq, can you give me a few more details about this issue? Do you always get this error message or only sometimes? It looks like this is a pytorch lightning function that is causing the error. Are you using the same version of pytorch lightning as in the yml file?

leaf-ygq commented 3 years ago

Hi @EmilyAlsentzer, I always get this error message. The version of my pytorch lightning is 1.0.8. I installed the conda environment using your yml file, but it seems that the yml file loses some modules which support your code. For example, when I first ran your code, it losed pytorch lightning. So I installed it using command "pip install". Now I check the yml file in your github again, there is no informaion about pytorch lightning. Is there somthing wrong?

EmilyAlsentzer commented 3 years ago

Thanks for catching the missing pytorch lightning package in the yml. In creating a pared down yml file, I must have forgotten to include it. I'll upload a new one ASAP, but in the meantime can you try pip install pytorch-lightning==0.7.1?

leaf-ygq commented 3 years ago

ok, thanks for your help! When I change the version of pytorch-lightning, this problem is solved.