pytorch-tutorial icon indicating copy to clipboard operation
pytorch-tutorial copied to clipboard

there was a problem in language model

Open TobeyLi opened this issue 6 years ago • 1 comments

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!

TobeyLi avatar Jul 27 '19 09:07 TobeyLi

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

OrangeC93 avatar Dec 17 '19 22:12 OrangeC93