MCPcopy Create free account
hub / github.com/BVLC/caffe / Restore

Method Restore

src/caffe/solver.cpp:463–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461
462template <typename Dtype>
463void Solver<Dtype>::Restore(const char* state_file) {
464 string state_filename(state_file);
465 if (state_filename.size() >= 3 &&
466 state_filename.compare(state_filename.size() - 3, 3, ".h5") == 0) {
467 RestoreSolverStateFromHDF5(state_filename);
468 } else {
469 RestoreSolverStateFromBinaryProto(state_filename);
470 }
471}
472
473template <typename Dtype>
474void Solver<Dtype>::UpdateSmoothedLoss(Dtype loss, int start_iter,

Callers 4

trainFunction · 0.80
InternalThreadEntryMethod · 0.80
RunLeastSquaresSolverMethod · 0.80
solver_restoreFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

RunLeastSquaresSolverMethod · 0.64