What is the Transformer architecture, and how does attention work?

The Transformer is a deep learning architecture introduced in the 2017 paper “Attention Is All You Need” by Vaswani et al. It…