Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNN部分的bug #1

Open
cybercsc-louis-xjj opened this issue Dec 19, 2020 · 2 comments
Open

RNN部分的bug #1

cybercsc-louis-xjj opened this issue Dec 19, 2020 · 2 comments

Comments

@cybercsc-louis-xjj
Copy link

两个BiLSTM的模型 在用GPU的时候都会出“超过最大迭代次数”的bug

@glMa7
Copy link

glMa7 commented Mar 17, 2021

我也出了这样的bug,module.train(mode)这个命令运行了近千次
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

@Claymore715
Copy link

老哥,你这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants