wut
This commit is contained in:
@@ -29,7 +29,7 @@ class PairwiseComparator(nn.Module):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def forward(self, a, b):
|
def forward(self, a, b):
|
||||||
# trying to force antisym here: h(a,b)=−h(b,a)
|
# trying to force antisym here: h(a,b)=-h(b,a)
|
||||||
phi = self.head(self.embed(a-b))
|
phi = self.head(self.embed(a-b))
|
||||||
phi_neg = self.head(self.embed(b-a))
|
phi_neg = self.head(self.embed(b-a))
|
||||||
logit = phi - phi_neg
|
logit = phi - phi_neg
|
||||||
|
|||||||
Reference in New Issue
Block a user