Skip to content

Commit 0d1e0f7

Browse files
authored
Merge pull request pytorch#163 from vfdev-5/patch-2
Update sequence_models_tutorial.py
2 parents 97bfe6c + 2195e80 commit 0d1e0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/nlp/sequence_models_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
# (compare the last slice of "out" with "hidden" below, they are the same)
8181
# The reason for this is that:
8282
# "out" will give you access to all hidden states in the sequence
83-
# "hidden" will allow you to continue the sequence and backpropogate,
83+
# "hidden" will allow you to continue the sequence and backpropagate,
8484
# by passing it as an argument to the lstm at a later time
8585
# Add the extra 2nd dimension
8686
inputs = torch.cat(inputs).view(len(inputs), 1, -1)

0 commit comments

Comments
 (0)