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

Method call

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

Source from the content-addressed store, hash-verified

105 self.step()
106
107 def call(self, loss):
108 for p, g in autograd.backward(loss):
109 if p.name is None:
110 p.name = id(p)
111 self.apply(p.name, p, g)
112
113 def step(self):
114 """To increment the step counter and update the lr"""

Callers 1

__call__Method · 0.95

Calls 2

applyMethod · 0.95
backwardMethod · 0.45

Tested by

no test coverage detected