Closed leaf-ygq closed 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?
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?
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
?
ok, thanks for your help! When I change the version of pytorch-lightning, this problem is solved.
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'
Would you mind helping me deal with it?