Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
9bow committed Jun 13, 2024
1 parent 42be0e1 commit e8ebbe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .build/requirements-minimal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sphinx-sitemap
sphinxext-opengraph
sphinxcontrib-katex
plotly==5.14.0
torch==2.3
torch
torchvision
torchtext
torchaudio
Expand Down
2 changes: 1 addition & 1 deletion beginner_source/chatbot_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def outputVar(l, voc):
max_target_len = max([len(indexes) for indexes in indexes_batch])
padList = zeroPadding(indexes_batch)
mask = binaryMatrix(padList)
mask = torch.ByteTensor(mask)
mask = torch.BoolTensor(mask)
padVar = torch.LongTensor(padList)
return padVar, mask, max_target_len

Expand Down
2 changes: 1 addition & 1 deletion intermediate_source/seq2seq_translation_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def evaluateRandomly(encoder, decoder, n=10):
pair = random.choice(pairs)
print('>', pair[0])
print('=', pair[1])
output_words, attentions = evaluate(encoder, decoder, pair[0])
output_words, _ = evaluate(encoder, decoder, pair[0], input_lang, output_lang)
output_sentence = ' '.join(output_words)
print('<', output_sentence)
print('')
Expand Down

0 comments on commit e8ebbe5

Please sign in to comment.