summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2015-10-30 23:08:12 -0700
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2015-10-30 23:08:12 -0700
commitf5fd18b6cd1371ec79b452d803756276a445abb1 (patch)
treeabd3dbec0bd4ee074a4f3cab2d7b07c73d404fe8 /include
parentca4e3428bd40ba5b4ba941a7781d0d16d0726005 (diff)
parent19d9927d76d6655a3efc090611e59aa2ea0f25a5 (diff)
downloadcaffeonacl-f5fd18b6cd1371ec79b452d803756276a445abb1.tar.gz
caffeonacl-f5fd18b6cd1371ec79b452d803756276a445abb1.tar.bz2
caffeonacl-f5fd18b6cd1371ec79b452d803756276a445abb1.zip
Merge pull request #3082 from gustavla/pycaffe-snapshot
Expose `Solver::Snapshot` to pycaffe
Diffstat (limited to 'include')
-rw-r--r--include/caffe/solver.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/caffe/solver.hpp b/include/caffe/solver.hpp
index 298a68f3..26b8e8e2 100644
--- a/include/caffe/solver.hpp
+++ b/include/caffe/solver.hpp
@@ -61,6 +61,11 @@ class Solver {
// RestoreSolverStateFrom___ protected methods. You should implement these
// methods to restore the state from the appropriate snapshot type.
void Restore(const char* resume_file);
+ // The Solver::Snapshot function implements the basic snapshotting utility
+ // 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();
virtual ~Solver() {}
inline const SolverParameter& param() const { return param_; }
inline shared_ptr<Net<Dtype> > net() { return net_; }
@@ -92,11 +97,6 @@ class Solver {
protected:
// Make and apply the update value for the current iteration.
virtual void ApplyUpdate() = 0;
- // The Solver::Snapshot function implements the basic snapshotting utility
- // 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 SnapshotFilename(const string extension);
string SnapshotToBinaryProto();
string SnapshotToHDF5();