Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we use this attention visualization to do attention weights visaulization on tranformer #1

Open
liperrino opened this issue Feb 7, 2020 · 1 comment

Comments

@liperrino
Copy link

Hi. Thanks to this work. Please i would like to know how we can extend the attention visualization to the transformer (attention is all you need)

@sandrobarna
Copy link
Owner

@liperrino Hi, that's pretty straightforward, you just need to capture similarity scores between key and context vectors in attention layer during forward pass and then plot heatmap or something similar. Let me know if it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants