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

Why did you divide this term? #20

Open
sperfu opened this issue Mar 24, 2022 · 1 comment
Open

Why did you divide this term? #20

sperfu opened this issue Mar 24, 2022 · 1 comment

Comments

@sperfu
Copy link

sperfu commented Mar 24, 2022

Hi there,

I was reading your code on graphtransformer, I'm kind of curious on the operation shown below. Why did you divide the wV score by the w(or so called 'score' term), I didn't see any terms shown in your equation 4 or equation 9 in the paper. Could you illustrated that?

h_out = g.ndata['wV'] / (g.ndata['z'] + torch.full_like(g.ndata['z'], 1e-6)) # adding eps to all values here

Thanks

@vijaydwivedi75
Copy link
Member

Hi @sperfu, it is part of the softmax term. Please refer to this issue for the pointers to the explanation.

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