MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / forward

Method forward

utils/misc.py:56–57  ·  view source on GitHub ↗
(self, inputs, targets)

Source from the content-addressed store, hash-verified

54 self.nll_loss = nn.NLLLoss2d(weight, size_average, ignore_index)
55
56 def forward(self, inputs, targets):
57 return self.nll_loss((1 - F.softmax(inputs)) ** self.gamma * F.log_softmax(inputs), targets)
58
59
60def _fast_hist(label_pred, label_true, num_classes):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected