Attnention mechanism
attention(Q, K, V, mask = NULL)
Q
queries
K
keys
V
values
mask
optional mask
attention values