22 #ifndef SINGA_UTILS_UPDATER_H_
23 #define SINGA_UTILS_UPDATER_H_
25 #include "proto/job.pb.h"
26 #include "utils/param.h"
38 static LRGenerator* Create(
const LRGenProto& proto);
42 virtual void Init(
const LRGenProto& proto) { proto_ = proto; }
47 virtual float Get(
int step) {
return proto_.base_lr(); }
55 float Get(
int step)
override;
62 float Get(
int step)
override;
67 float Get(
int step)
override;
72 float Get(
int step)
override;
77 float Get(
int step)
override;
82 float Get(
int step)
override;
90 static Updater* Create(
const UpdaterProto& proto);
94 virtual void Init(
const UpdaterProto &proto);
95 virtual void Update(
int step,
Param* param,
float grad_scale) = 0;
106 void Update(
int step,
Param* param,
float grad_scale)
override;
111 void Update(
int step,
Param* param,
float grad_scale)
override;
117 void Update(
int step,
Param* param,
float grad_scale)
override;
145 #endif // SINGA_UTILS_UPDATER_H_
float Get(int step) override
float Get(int step) override
float Get(int step) override
Base learning rate generator.
Definition: updater.h:36
Base paramter class.
Definition: param.h:93
virtual float Get(int step)
Definition: updater.h:47
float Get(int step) override
Definition: updater.h:115
Definition: updater.h:109
Updater for Param.
Definition: updater.h:88
Definition: updater.h:104
float Get(int step) override
float Get(int step) override