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

Method __call__

python/singa/opt.py:103–105  ·  view source on GitHub ↗
(self, loss)

Source from the content-addressed store, hash-verified

101 self.lr_value = self.lr(self.step_counter)
102
103 def __call__(self, loss):
104 self.call(loss)
105 self.step()
106
107 def call(self, loss):
108 for p, g in autograd.backward(loss):

Callers 1

backward_and_updateMethod · 0.95

Calls 2

callMethod · 0.95
stepMethod · 0.95

Tested by

no test coverage detected