Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion char-rnn-classification/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def train(category_tensor, line_tensor):

optimizer.step()

return output, loss.data[0]
return output, loss.item()

# Keep track of losses for plotting
current_loss = 0
Expand Down