Helper class for SGD */
| 270 | |
| 271 | /** Helper class for SGD */ |
| 272 | class SGD : public Optimizer { |
| 273 | public: |
| 274 | SGD(float _lr = 1e-4, float _weight_decay = 0, const LRSchedule &_schedule = "linear") : |
| 275 | Optimizer("SGD", 0, _lr, _weight_decay, _schedule) {} |
| 276 | }; |
| 277 | |
| 278 | /** Helper class for Momentum */ |
| 279 | class Momentum : public Optimizer { |
nothing calls this directly
no outgoing calls
no test coverage detected