| 22 | namespace singa { |
| 23 | |
| 24 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected