Replies: 1 comment 2 replies
-
Please see my answer here. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'd like to implement the function as follows:





That is, I need to calculate the attention
alpha
between the head entity and relations, and need to calculate the attentionbelta
between relation and tail entity.So, How can I use
pyg
to implement attention score in terms of a part of neighbors, not all neighbors?Note: I can implement it in the numerator, but it's not clear how do I compute the denominator
The above is the explanation of the Dimension of the tensor in the softmax function where num_edge is the number of all edge_index.
The calculation of attention is shown below:
Looking forward to your help! Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions