Skip to content

Commit

Permalink
initialize solver iter to zero (previously uninitialized)
Browse files Browse the repository at this point in the history
  • Loading branch information
longjon committed Nov 25, 2014
1 parent 9ec25df commit b368ac8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/caffe/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void Solver<Dtype>::Init(const SolverParameter& param) {
LOG(INFO) << "Initializing solver from parameters: " << std::endl
<< param.DebugString();
param_ = param;
iter_ = 0;
if (param_.random_seed() >= 0) {
Caffe::set_random_seed(param_.random_seed());
}
Expand Down

0 comments on commit b368ac8

Please sign in to comment.