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

Method Setup

src/model/optimizer/nesterov.cc:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace singa {
23
24void Nesterov::Setup(const OptimizerConf& conf) {
25 float m = conf.momentum();
26 SetMomentumGenerator([m](int step) { return m; });
27}
28
29// tmp = history;
30// history = lr * grad + history * mom

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected