diff --git a/include/caffe/solver.hpp b/include/caffe/solver.hpp index 30a74586d62..8ca0588e821 100644 --- a/include/caffe/solver.hpp +++ b/include/caffe/solver.hpp @@ -82,8 +82,8 @@ class SGDSolver : public Solver { const vector > >& history() { return history_; } protected: + void PreSolve(); Dtype GetLearningRate(); - virtual void PreSolve(); virtual void ApplyUpdate(); virtual void Normalize(int param_id); virtual void Regularize(int param_id); @@ -166,7 +166,7 @@ class AdaDeltaSolver : public SGDSolver { : SGDSolver(param_file) { PreSolve(); constructor_sanity_check(); } protected: - virtual void PreSolve(); + void PreSolve(); virtual void Regularize(int param_id); virtual void ComputeUpdateValue(int param_id, Dtype rate); void constructor_sanity_check() {