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

Method Apply

src/model/optimizer/optimizer.cc:78–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78void Optimizer::Apply(int epoch, const string& name, Tensor& grad,
79 Tensor& value, int step) {
80 float lr = learning_rate_generator_(step);
81 Apply(epoch, lr, name, grad, value, step);
82}
83
84void Regularizer::Setup(const RegularizerConf& conf) {
85 type_ = conf.type();

Callers 1

Calls 1

AxpyFunction · 0.50

Tested by

no test coverage detected