MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Restore

Method Restore

rtpose_wrapper/src/caffe/solver.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471template <typename Dtype>
472void Solver<Dtype>::Restore(const char* state_file) {
473 CHECK(Caffe::root_solver());
474 string state_filename(state_file);
475 if (state_filename.size() >= 3 &&
476 state_filename.compare(state_filename.size() - 3, 3, ".h5") == 0) {
477 RestoreSolverStateFromHDF5(state_filename);
478 } else {
479 RestoreSolverStateFromBinaryProto(state_filename);
480 }
481}
482
483template <typename Dtype>
484void Solver<Dtype>::UpdateSmoothedLoss(Dtype loss, int start_iter,

Callers 3

trainFunction · 0.80
RunLeastSquaresSolverMethod · 0.80
solver_restoreFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

RunLeastSquaresSolverMethod · 0.64