practical-pytorch
practical-pytorch copied to clipboard
Update char-rnn-generation.ipynb
Changed the train() -function so that they work on PyTorch 1.3.1
Changed target[c] --> target[c].view(1) (because of dimensionality problems) Changed loss.data[0] --> loss.data.item()