Multi-head attention

Multi-head attention applies scaled-dot-product-attention to several learned projections in parallel. It concatenates the head outputs and projects them back to the model dimension.