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

Method step

python/singa/opt.py:113–117  ·  view source on GitHub ↗

To increment the step counter and update the lr

(self)

Source from the content-addressed store, hash-verified

111 self.apply(p.name, p, g)
112
113 def step(self):
114 """To increment the step counter and update the lr"""
115 self.step_counter.data += 1
116 lr_value = self.lr(self.step_counter)
117 self.lr_value.copy_from(lr_value)
118
119 def apply(self, param_name, param_value, param_grad):
120 """Performs a single optimization step.

Callers 2

__call__Method · 0.95
test_optimizerMethod · 0.95

Calls 1

copy_fromMethod · 0.45

Tested by 1

test_optimizerMethod · 0.76