temporarily switch the snapshot_format default back to BINARYPROTO
authorJeff Donahue <jeff.donahue@gmail.com>
Sat, 8 Aug 2015 03:03:04 +0000 (20:03 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Sat, 8 Aug 2015 03:07:18 +0000 (20:07 -0700)
out of anticipation for user issues due to issue #2885, which causes
Caffe to crash when it attempts to snapshot nets with duplicate layer
names

src/caffe/proto/caffe.proto
src/caffe/test/test_gradient_based_solver.cpp

index 96e975b..a13c0e7 100644 (file)
@@ -179,7 +179,7 @@ message SolverParameter {
     HDF5 = 0;
     BINARYPROTO = 1;
   }
-  optional SnapshotFormat snapshot_format = 37 [default = HDF5];
+  optional SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
   // the mode solver will use: 0 for CPU and 1 for GPU. Use GPU in default.
   enum SolverMode {
     CPU = 0;
index e1bbbf1..7bb0ec1 100644 (file)
@@ -192,7 +192,7 @@ class GradientBasedSolverTest : public MultiDeviceTest<TypeParam> {
     if (snapshot) {
       ostringstream resume_file;
       resume_file << snapshot_prefix_ << "/_iter_" << num_iters
-                  << ".solverstate.h5";
+                  << ".solverstate";
       string resume_filename = resume_file.str();
       return resume_filename;
     }