Skip to content

Commit 94e3fb3

Browse files
oya163chsasank
authored andcommitted
Updated comment section of "Training the Model" (pytorch#110)
I believe "The decoder is given the ``<SOS>`` token as its first input, and the last hidden state of the encoder as its first hidden state." Minute correction on comment section.
1 parent 9bd9cd4 commit 94e3fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/seq2seq_translation_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def variablesFromPair(pair):
538538
# To train we run the input sentence through the encoder, and keep track
539539
# of every output and the latest hidden state. Then the decoder is given
540540
# the ``<SOS>`` token as its first input, and the last hidden state of the
541-
# decoder as its first hidden state.
541+
# encoder as its first hidden state.
542542
#
543543
# "Teacher forcing" is the concept of using the real target outputs as
544544
# each next input, instead of using the decoder's guess as the next input.

0 commit comments

Comments
 (0)