name2nat icon indicating copy to clipboard operation
name2nat copied to clipboard

报错AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'

Open pli29-ctrip opened this issue 2 years ago • 5 comments

按照文档要求,初始化时报错 AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks' python3.7版本

pli29-ctrip avatar Jul 26 '22 06:07 pli29-ctrip

Hi, I am having this issue as well! Python 3.7 here too.

vlad43210 avatar Aug 19 '22 16:08 vlad43210

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

tetapunto avatar Sep 30 '22 14:09 tetapunto

Getting the same error!

vitali87 avatar Oct 22 '22 21:10 vitali87

Same issue here - any solution @Kyubyong ?

fischja avatar Feb 17 '23 00:02 fischja

I followed https://github.com/Kyubyong/name2nat/issues/5#issuecomment-1858990618 and successfully solved the dependency issues

harningle avatar Jul 05 '24 14:07 harningle