Attention layer visualize

How to visualize attention layer, specifically in this code?