Pregunta de entrevista de TikTok

Write self-attention and cross-entropy pseudocode