6/25
Part 1 of 6 · The lookupLearn

The formula is two matrix products and a softmax

One query at a time would be a loop. Stack the queries as rows, and one product scores them all.

Predict

q has shape (3, d) and k has shape (4, d). What shape is q @ k swapped?

Pick an answer above to see the rest