Explain attention mechanism.

Attention mechanism is a technique in deep learning that helps models focus on the most important parts of the input data.