Skip to content

Commit

Permalink
temporarily switch the snapshot_format default back to BINARYPROTO
Browse files Browse the repository at this point in the history
out of anticipation for user issues due to issue BVLC#2885, which causes
Caffe to crash when it attempts to snapshot nets with duplicate layer
names
  • Loading branch information
jeffdonahue authored and matthiasplappert committed Aug 10, 2015
1 parent b70f83f commit 40aae84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/caffe/proto/caffe.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/caffe/test/test_gradient_based_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,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;
}
Expand Down

0 comments on commit 40aae84

Please sign in to comment.