restored vituals in solver.hpp
authorqipeng <pengrobertqi@163.com>
Sun, 20 Jul 2014 00:33:35 +0000 (17:33 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Mon, 1 Sep 2014 18:33:41 +0000 (11:33 -0700)
include/caffe/solver.hpp

index 87c6563..03c6558 100644 (file)
@@ -66,11 +66,11 @@ class SGDSolver : public Solver<Dtype> {
       : Solver<Dtype>(param_file) {}
 
  protected:
-  void PreSolve();
+  virtual void PreSolve();
   Dtype GetLearningRate();
   virtual void ComputeUpdateValue();
-  void SnapshotSolverState(SolverState * state);
-  void RestoreSolverState(const SolverState& state);
+  virtual void SnapshotSolverState(SolverState * state);
+  virtual void RestoreSolverState(const SolverState& state);
   // history maintains the historical momentum data.
   // update maintains update related data and is not needed in snapshots.
   vector<shared_ptr<Blob<Dtype> > > history_, update_;