Skip to content

Commit 7a2417c

Browse files
authored
Merge pull request udacity#96 from Fernandohf/bugFix-RuntimeError
Fix issue udacity#95 - RuntimeError
2 parents 6a10708 + da33dba commit 7a2417c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentiment-rnn/Sentiment_RNN_Solution.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@
676676
" batch_size = x.size(0)\n",
677677
"\n",
678678
" # embeddings and lstm_out\n",
679+
" x = x.long()\n",
679680
" embeds = self.embedding(x)\n",
680681
" lstm_out, hidden = self.lstm(embeds, hidden)\n",
681682
" \n",

0 commit comments

Comments
 (0)