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

Method forward

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

Source from the content-addressed store, hash-verified

44 self.nll_loss = nn.NLLLoss2d(weight, size_average, ignore_index)
45
46 def forward(self, inputs, targets):
47 return self.nll_loss(F.log_softmax(inputs), targets)
48
49
50class FocalLoss2d(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected