MCPcopy Create free account
hub / github.com/HiLab-git/ACELoss / forward

Method forward

aceloss.py:383–386  ·  view source on GitHub ↗
(self, y_pred, y_true)

Source from the content-addressed store, hash-verified

381 return elastica
382
383 def forward(self, y_pred, y_true):
384 loss = self.region(y_pred, y_true, u=self.miu) + \
385 self.elastica(y_pred, a=self.alpha, b=self.beta)
386 return loss
387
388
389class FastACELoss3D(nn.Module):

Callers

nothing calls this directly

Calls 2

regionMethod · 0.95
elasticaMethod · 0.95

Tested by

no test coverage detected