The Wayback Machine - https://web.archive.org/web/20201105084459/https://github.com/yunjey/pytorch-tutorial/issues/185
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

there was a problem in language model #185

Open
TobeyLi opened this issue Jul 27, 2019 · 1 comment
Open

there was a problem in language model #185

TobeyLi opened this issue Jul 27, 2019 · 1 comment

Comments

@TobeyLi
Copy link

@TobeyLi TobeyLi commented Jul 27, 2019

hello,when I try to run pytorch-tutorial/tutorials/02-intermediate/language_model/main.py this file,but I got some error,Firstly,when it comes to "ids = corpus.get_data('data/train.txt', batch_size)",it will display shape '[20,-1]' is invalid for input of size 929589,Is there any wrong with the train.txt? Secondly,sample.txt doesn't contain in the dictionary 'data'.Hope you can fix it,thanks!

@OrangeC93
Copy link

@OrangeC93 OrangeC93 commented Dec 17, 2019

The code works for me. You may need to check your code again.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.