onehaitao / Att-BLSTM-relation-extraction

Implementation of Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification.
MIT License
76 stars 17 forks source link

当选择BiLSTtt进行训练时,报错 #2

Closed glMa7 closed 3 years ago

glMa7 commented 3 years ago

往上翻发现提示 File "D:\Program Files\miniconda3\envs\pyt\lib\site-packages\torch\nn\modules\module.py", line 1072, in train module.train(mode) [Previous line repeated 990 more times] File "D:\Program Files\miniconda3\envs\pyt\lib\site-packages\torch\nn\modules\module.py", line 1070, in train self.training = mode File "D:\Program Files\miniconda3\envs\pyt\lib\site-packages\torch\nn\modules\rnn.py", line 97, in setattr super(RNNBase, self).setattr(attr, value) File "D:\Program Files\miniconda3\envs\pyt\lib\site-packages\torch\nn\modules\module.py", line 602, in setattr params = self.dict.get('_parameters') RecursionError: maximum recursion depth exceeded while calling a Python object