Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Update char-rnn-generation.ipynb #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PatrikHolopainen
Copy link

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()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant