You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the chapter11_part04_sequence-to-sequence-learning.ipynb, the TransformerDecoder receives the mask from the PositionalEmbedding layer of the target sequence:
x = PositionalEmbedding(sequence_length, vocab_size, embed_dim)(decoder_inputs)
x = TransformerDecoder(embed_dim, dense_dim, num_heads)(x, encoder_outputs)
Shouldn’t the mask be the one created from encoding the source sequence?
For example, I have seen that in this TF tutorial the mask from the source sequence is used instead.
Any clarification would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
balvisio
changed the title
Mask for TranformerDecoder
Mask for TranformerDecoder in the end-to-end Transformer (Chapter 11)
Jul 29, 2022
balvisio
changed the title
Mask for TranformerDecoder in the end-to-end Transformer (Chapter 11)
Mask for TranformerDecoder in the end-to-end Transformer (2nd edition, Chapter 11)
Jul 29, 2022
balvisio
changed the title
Mask for TranformerDecoder in the end-to-end Transformer (2nd edition, Chapter 11)
Mask for TransformerDecoder in the end-to-end Transformer (2nd edition, Chapter 11)
Jul 30, 2022
balvisio
changed the title
Mask for TransformerDecoder in the end-to-end Transformer (2nd edition, Chapter 11)
Mask for TransformerDecoder in the end-to-end Transformer (chapter11_part04_sequence-to-sequence-learning.ipynb)
Jul 30, 2022
In the
chapter11_part04_sequence-to-sequence-learning.ipynb
, the TransformerDecoder receives the mask from the PositionalEmbedding layer of the target sequence:Shouldn’t the mask be the one created from encoding the source sequence?
For example, I have seen that in this TF tutorial the mask from the source sequence is used instead.
Any clarification would be greatly appreciated.
The text was updated successfully, but these errors were encountered: