Skip to content

Commit

Permalink
ligmap options weren't actually implemented - would rather they are
Browse files Browse the repository at this point in the history
specified in the model file
  • Loading branch information
dkoes committed Jan 24, 2018
1 parent 5d74321 commit 5485c31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/caffe/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Solver {
// that stores the learned net. You should implement the SnapshotSolverState()
// function that produces a SolverState protocol buffer that needs to be
// written to disk together with the learned net.
void Snapshot();
string Snapshot();
virtual ~Solver() {}
inline const SolverParameter& param() const { return param_; }
inline shared_ptr<Net<Dtype> > net() { return net_; }
Expand Down
3 changes: 2 additions & 1 deletion src/caffe/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ void Solver<Dtype>::Test(const int test_net_id) {
}

template <typename Dtype>
void Solver<Dtype>::Snapshot() {
string Solver<Dtype>::Snapshot() {
CHECK(Caffe::root_solver());
string model_filename;
switch (param_.snapshot_format()) {
Expand All @@ -416,6 +416,7 @@ void Solver<Dtype>::Snapshot() {
}

SnapshotSolverState(model_filename);
return model_filename;
}

template <typename Dtype>
Expand Down

0 comments on commit 5485c31

Please sign in to comment.