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

Method SetMomentumGenerator

include/singa/model/optimizer.h:187–189  ·  view source on GitHub ↗

The argument function returns the momentum value given the current running step (i.e., iterations/mini-batches).

Source from the content-addressed store, hash-verified

185 /// The argument function returns the momentum value given the current running
186 /// step (i.e., iterations/mini-batches).
187 void SetMomentumGenerator(std::function<float(int)> func) {
188 momentum_generator_ = func;
189 }
190
191 private:
192 std::unordered_map<string, Tensor> history_gradient_;

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36