pytorch_graph-rel icon indicating copy to clipboard operation
pytorch_graph-rel copied to clipboard

Equations and Code Matching Issue

Open JingliSHI0206 opened this issue 4 years ago • 1 comments
trafficstars

Hi,

First, i cannot figure out what is the real meaning of h_w1 and h_w2 in the paper. author never gives a description of them based on the below equation. image

then, I start to search them in code, and I find they are totally same. please correct me if I'm wrong. the calculation of S(w1, r, w2) uses the below code.

image

however, both trs0_rel and trs1_rel are linear functions with same dimension. same input are passed to them and i think the output should be also same.

self.trs0_rel = nn.Linear(self.hid_size2, self.hid_size) self.trs1_rel = nn.Linear(self.hid_size2, self.hid_size)

so my question is, if one linear function is enough, why two are listed with different notations?

any explanations are greatly appreciated. thank you

JingliSHI0206 avatar Mar 10 '21 16:03 JingliSHI0206

Hello, I would like to know where the three learnable relationship matrices are represented in the code

Junzizaiji avatar Apr 16 '23 07:04 Junzizaiji