Question 15
Given a tensor with shape (batch_size = 32, seq_len = 50, d_model = 768), how is Layer Normalization applied in a Transformer?
It is applied once per batch (32 times), normalizing across all tokens and features.
It is applied once per sequence position (50 times), normalizing across batch and features.
It is applied independently to each token (32 × 50 = 1600 times), normalizing across the 768 feature dimensions.
It is applied once per feature dimension (768 times), normalizing across batch and sequence length.