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

any way to visualize attention activation? #272

Open
cristianmtr opened this issue Apr 1, 2019 · 3 comments
Open

any way to visualize attention activation? #272

cristianmtr opened this issue Apr 1, 2019 · 3 comments

Comments

@cristianmtr
Copy link

Hey

Is there any way to get the attention weights? That would be super nice :)

@cdhx
Copy link

cdhx commented Apr 10, 2019

i want this too,hope somebody can give a demo

@cdhx
Copy link

cdhx commented Apr 10, 2019

or if someone can show where the attention is in the source code model/cell,i just find in model.py,the anatation are asa fllow in line232:
The weight alpha[i, j] for each hj is computed as follows:
energy = a(s(i-1), H(j))
alpha = softmax(energy)
Where a is a feed forward network.
and in cell.py line 90,there shows how alpha calculate

@cdhx
Copy link

cdhx commented Apr 11, 2019

anybody help?~

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