Restore can be invoked on rank > 0
authorCyprien Noel <cyprien.noel@gmail.com>
Mon, 23 Jan 2017 18:31:26 +0000 (10:31 -0800)
committerCyprien Noel <cyprien.noel@gmail.com>
Mon, 23 Jan 2017 18:31:26 +0000 (10:31 -0800)
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) {