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

The dimension of predicted_softmax in DecoderRNN.py #193

Open
tk1363704 opened this issue Oct 12, 2019 · 0 comments
Open

The dimension of predicted_softmax in DecoderRNN.py #193

tk1363704 opened this issue Oct 12, 2019 · 0 comments

Comments

@tk1363704
Copy link

tk1363704 commented Oct 12, 2019

predicted_softmax = function(self.out(output.contiguous().view(-1, self.hidden_size)), dim=1).view(batch_size, output_size, -1)

I think .view(batch_size, output_size, -1) should be .view(batch_size, -1, output_size) or this line just makes no sense.

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