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

8.6.3节中采用RNN实现自回归模型似乎有问题 #81

Open
fathink opened this issue Feb 11, 2024 · 0 comments
Open

8.6.3节中采用RNN实现自回归模型似乎有问题 #81

fathink opened this issue Feb 11, 2024 · 0 comments

Comments

@fathink
Copy link

fathink commented Feb 11, 2024

输入的x的size为[batch_size, seq_len],通过 rnn_out, _ = self.rnn(input.view(len(input), 1, -1))中的变换后送入rnn中的含义为[batch_size,1,seq_len],这里似乎是有问题的,原因在于rnn的默认的第一个维度为时间序列,不是batch_size。

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

1 participant