报错AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'
pli29-ctrip opened this issue · comments
pli29-ctrip commented
按照文档要求,初始化时报错
AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'
python3.7版本
vlad43210 commented
Hi, I am having this issue as well! Python 3.7 here too.
Davide Torredoro commented
I have fixed this by:
- using python 3.7
- using pythorch 1.4.0 (conda install pytorch==1.4.0 torchvision==0.5.0 -c pytorch)
- using flair 0.6
Vitali Avagyan commented
Getting the same error!