pytorch-tutorial
pytorch-tutorial copied to clipboard
there was a problem in language model
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!
The code works for me. You may need to check your code again.