I see model.hidden = model.init_hidden() in the following example for the training using each sentence. Since it is used for training, shouldn’t it be used for testing as well?
http://pytorch.org/tutorials/beginner/nlp/sequence_models_tutorial.html 75