TikTok interview question

Write a cross-attention in PyTorch.