Skip to content

Commit

Permalink
Merge pull request #5215 from cypof/fix_restore
Browse files Browse the repository at this point in the history
Restore can be invoked on rank > 0
  • Loading branch information
cypof authored Jan 23, 2017
2 parents 3babd4e + e0cd852 commit 51f2986
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/caffe/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ string Solver<Dtype>::SnapshotToHDF5() {

template <typename Dtype>
void Solver<Dtype>::Restore(const char* state_file) {
CHECK(Caffe::root_solver());
string state_filename(state_file);
if (state_filename.size() >= 3 &&
state_filename.compare(state_filename.size() - 3, 3, ".h5") == 0) {
Expand Down

0 comments on commit 51f2986

Please sign in to comment.