We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
去掉device后报错:
The text was updated successfully, but these errors were encountered:
我也遇到了这个问题,我的tensor版本是 2.2.0。 我在本地的utils.py文件中,第293行,修改代码为 ans_list = self.rnn(X, state) Y = ans_list[0] state = ans_list[1:] 保存后,Shutdown jupyter文件,重启章节 6.8 的 jupyter文件 解决了这个问题。 以上,希望能略微帮助到后面的人。
Sorry, something went wrong.
我也遇到了这个问题,原函数并不需要device这个变量,我删掉device后,报错信息如下
思考后,我意识到,相比GRU和RNN,LSTM的state除了返回一个隐藏状态以外还返回了一个shape与隐藏状态一样的cell。
测试
我更改了RNNModel类的call函数。如下
回调学习率,再次训练便可以了
No branches or pull requests
去掉device后报错:
The text was updated successfully, but these errors were encountered: