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示例代码是否有问题 #96

Open
zzpzym opened this issue Jun 18, 2020 · 1 comment
Open

rnn示例代码是否有问题 #96

zzpzym opened this issue Jun 18, 2020 · 1 comment

Comments

@zzpzym
Copy link

zzpzym commented Jun 18, 2020

/pytorch-handbook-master/chapter2/2.5-rnn.ipynb中手动实现rnn的代码,其中循环是不是有些问题?for i in range(seq_len): output,hn= rnn(input[i, :], h_0) print(output.size(),h_0.size())
应该为 output,h_0= rnn(input[i, :], h_0)

@zergtant
Copy link
Owner

啊,我看下

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

2 participants