MCPcopy Create free account
hub / github.com/apache/singa / loss

Method loss

test/python/test_model.py:73–74  ·  view source on GitHub ↗
(self, out, ty)

Source from the content-addressed store, hash-verified

71 return y_, l
72
73 def loss(self, out, ty):
74 return autograd.softmax_cross_entropy(out, ty)
75
76 def optim(self, loss):
77 self.optimizer(loss)

Callers 1

train_one_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected