This commit is contained in:
2025-12-25 02:13:23 +00:00
parent 4f500e8b4c
commit edf8d46123

View File

@@ -29,7 +29,7 @@ class PairwiseComparator(nn.Module):
)
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_neg = self.head(self.embed(b-a))
logit = phi - phi_neg