can't pickle generator objects
yoongi0428 opened this issue · comments
Yoonki Jeong commented
Li Dong commented
Hi @yoongi0428 ,
I am afraid it's caused by the different PyTorch version. Please find the requirements in https://github.com/donglixp/coarse2fine/blob/master/README.md .
Yoonki Jeong commented
Thanks for comment. However, I'm having the same problem even if I met all the requirements. Could you please check? Thanks.
Yoonki Jeong commented
I just found that it's about "construct_final" function in wikisql/table/IO.
It 'yield's (not return) so that torchtext example becomes generator rather than a list.
If I return just a list then it works.
Li Dong commented