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

Method __call__

tf_euler/python/solution/base_supervise.py:43–50  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

41 return self.encoder(n_id)
42
43 def __call__(self, inputs):
44 label = self.get_label_fn(inputs)
45 embedding = self.embed(inputs)
46 logit = self.logit_fn(embedding)
47
48 metric = self.metric_class(label, tf.nn.sigmoid(logit))
49 loss = self.loss_fn(label, logit)
50 return (embedding, loss, self.metric_name, metric)

Callers

nothing calls this directly

Calls 2

embedMethod · 0.95
loss_fnMethod · 0.45

Tested by

no test coverage detected