Open ThinkNaive opened 3 years ago
I found that expression in line(52) in modules.py logits = torch.matmul(adj_Aforz, x + self.Wa) - self.Wa
is slightly different from that in the paper.
adj_Aforz denotes , use A
for simplicity.
x denotes , use B
for simplicity.
As is mentioned in the paper, , so the corresponding expression is logits = AB
.
However, expression in line(52) equals AB+(∑∑Aij - 1)*Wa
same question, could you please explain what is the purpose of Wa here?
here's the line(52) in modules.py:
logits = torch.matmul(adj_Aforz, x + self.Wa) - self.Wa
whether is it same as the following line?
logits = torch.matmul(adj_Aforz, x)
I've test result between the two, however they are the same. So I wonder if there were any tricks so that the param
Wa
is necessary? Wish you could help me, thank you.