| 76 | |
| 77 | |
| 78 | void 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 | |
| 84 | void Regularizer::Setup(const RegularizerConf& conf) { |
| 85 | type_ = conf.type(); |
no test coverage detected