Losses in Transformer