A single encoder block has two sub-layers, i.e., multi-head attention and position-wise feed-forward networks. Each sub-layer is followed by residual connection [1]} and layer normalization [2]}. The outputs of the encoder will be sent into the decoder as \(K, V\)  in the second multi-head attention layer.
