Classifying Names with A Character-Level RNN Code mostly adapted from: http://pytorch.org/tutorials/intermediate/char_rnn_classification_tutorial.html https://github.com/ngarneau/understanding-pytorch-batching-lstm