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

confusion about the multi-head attention #11

Open
ynuwm opened this issue Apr 26, 2021 · 0 comments
Open

confusion about the multi-head attention #11

ynuwm opened this issue Apr 26, 2021 · 0 comments

Comments

@ynuwm
Copy link

ynuwm commented Apr 26, 2021

In the function GAT_net in stgat_agent.py, why you only return the last relation in line 544:

return relation_pool[-1], att_record_all_layers

If we set two layers of MultiHeadsAttModel, according this code it only return the last relation, I think we should weight them and add them up. Can you give me an explanation? Thank you.

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

1 participant