MCPcopy Create free account
hub / github.com/DeepGraphLearning/FewShotRE / loss

Method loss

fewshot_re_kit/framework.py:43–50  ·  view source on GitHub ↗

logits: Logits with the size (..., class_num) label: Label with whatever size. return: [Loss] (A single value)

(self, logits, label)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

trainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected