Pergunta de entrevista da empresa AMD

How does the self attention layer work in transformers?