PyTorch Multi-Head Self-Attention
Problem overview from a real Uber interview:
Project an input sequence to Q, K, and V tensors, reshape dimensions, compute scaled dot-product scores, and apply padding masks for this Uber ML task.
Check more interview questions and experiences about Uber
