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

Question about GAT attention training #52

Open
l-hoang opened this issue Sep 16, 2020 · 1 comment
Open

Question about GAT attention training #52

l-hoang opened this issue Sep 16, 2020 · 1 comment

Comments

@l-hoang
Copy link

l-hoang commented Sep 16, 2020

Hello.

To my understanding, the self attention step uses a learnable weight vector and a neural network. However, the code in this repo seems to use a very simple constant self-attention step.

# simplest self-attention possible

Is my understanding incorrect? Is there a place in the code where the neural network used for the self-attention step is trained?

Thank you.

@PetarV-
Copy link
Owner

PetarV- commented Sep 16, 2020

Hi,

Thank you for your issue! The neural network consists of the two conv1d layers applied right before the attention (these layers contain the weight vector). Backpropagating will hence train these networks along with every other part of the GAT.

Hope that helps!

Thanks,
Petar

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