MCPcopy Create free account
hub / github.com/alibaba/euler / PosNegLogits

Class PosNegLogits

tf_euler/python/solution/logits.py:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 return self.out_fc(inputs)
29
30class PosNegLogits(object):
31 def __call__(self, emb, pos_emb, neg_emb):
32 logit = tf.matmul(emb, pos_emb, transpose_b=True)
33 neg_logit = tf.matmul(emb, neg_emb, transpose_b=True)
34 return logit, neg_logit
35
36class CosineLogits(object):
37 def __call__(self, target_emb, context_emb):

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected