Skip to content

Commit

Permalink
Merge pull request #1308 from sguada/new_lr_policies
Browse files Browse the repository at this point in the history
[accidental PR: step size fix]
  • Loading branch information
sguada committed Oct 16, 2014
2 parents 72f97cc + 3d95ed3 commit 1718903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/mnist/lenet_multistep_solver.prototxt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ weight_decay: 0.0005
# The learning rate policy
lr_policy: "multistep"
gamma: 0.9
stepvalue: 1000
stepvalue: 2000
stepvalue: 2500
stepvalue: 3000
stepvalue: 3500
stepvalue: 4000
stepvalue: 5000
stepvalue: 7000
stepvalue: 8000
stepvalue: 9000
stepvalue: 9500
# Display every 100 iterations
display: 100
# The maximum number of iterations
Expand Down
1 change: 1 addition & 0 deletions src/caffe/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void Solver<Dtype>::Solve(const char* resume_file) {
PreSolve();

iter_ = 0;
current_step_ = 0;
if (resume_file) {
LOG(INFO) << "Restoring previous solver status from " << resume_file;
Restore(resume_file);
Expand Down

0 comments on commit 1718903

Please sign in to comment.