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

Method SnapshotToBinaryProto

rtpose_wrapper/src/caffe/solver.cpp:454–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453template <typename Dtype>
454string Solver<Dtype>::SnapshotToBinaryProto() {
455 string model_filename = SnapshotFilename(".caffemodel");
456 LOG(INFO) << "Snapshotting to binary proto file " << model_filename;
457 NetParameter net_param;
458 net_->ToProto(&net_param, param_.snapshot_diff());
459 WriteProtoToBinaryFile(net_param, model_filename);
460 return model_filename;
461}
462
463template <typename Dtype>
464string Solver<Dtype>::SnapshotToHDF5() {

Callers

nothing calls this directly

Calls 2

WriteProtoToBinaryFileFunction · 0.50
ToProtoMethod · 0.45

Tested by

no test coverage detected