What is the primary function of a transformer attention mechanism?
To reduce the total number of parameters in the deep learning model.
To allow the model to weigh the importance of different parts of the input data differently.
To replace the need for backpropagation during the training phase.
To exclusively handle the conversion of text into numerical vectors.
The attention mechanism allows the model to selectively focus on relevant parts of the input sequence.