name2nat
name2nat copied to clipboard
报错AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'
按照文档要求,初始化时报错 AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks' python3.7版本
Hi, I am having this issue as well! Python 3.7 here too.
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
Getting the same error!
Same issue here - any solution @Kyubyong ?
I followed https://github.com/Kyubyong/name2nat/issues/5#issuecomment-1858990618 and successfully solved the dependency issues