Transformer 简化架构
编码器 Encoder
输入序列
↓
位置编码
↓
多头自注意力
↓
前馈网络
⇄
解码器 Decoder
掩码自注意力
↓
交叉注意力 ← 编码器输出
↓
前馈网络
↓
输出序列