Merge pull request #5215 from cypof/fix_restore
authorCyprien Noel <cyprien.noel@gmail.com>
Mon, 23 Jan 2017 19:09:11 +0000 (11:09 -0800)
committerGitHub <noreply@github.com>
Mon, 23 Jan 2017 19:09:11 +0000 (11:09 -0800)
Restore can be invoked on rank > 0

src/caffe/solver.cpp

index 1c1a9e5..fd4c037 100644 (file)
@@ -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) {