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

Method GetLearningRate

include/singa/model/optimizer.h:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 learning_rate_generator_ = func;
83 }
84 float GetLearningRate(int step) {
85 if (learning_rate_generator_)
86 return learning_rate_generator_(step);
87 else
88 return 0;
89 }
90
91 protected:
92 function<float(int)> learning_rate_generator_;

Callers 2

TrainMethod · 0.80
TrainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected