Skip to content

Lab-11-5코드실행중 GPU 환경에서 evalueate 실행과정에서 발생하는 오류 해결 #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 lab-11_5_seq2seq.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
" for ei in range(source_length):\n",
" _, encoder_hidden = encoder(source_tensor[ei], encoder_hidden)\n",
"\n",
" decoder_input = torch.Tensor([[SOS_token]], device=device).long()\n",
" decoder_input = torch.Tensor([[SOS_token]]).long().to(device)\n",
" decoder_hidden = encoder_hidden\n",
" decoded_words = []\n",
"\n",
Expand Down