Skip to content
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 the_annotated_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def forward(self, x, memory, src_mask, tgt_mask):
#
# We also modify the self-attention sub-layer in the decoder stack to
# prevent positions from attending to subsequent positions. This
# masking, combined with fact that the output embeddings are offset by
# masking, combined with the fact that output embeddings are offset by
# one position, ensures that the predictions for position $i$ can
# depend only on the known outputs at positions less than $i$.

Expand Down