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

Method SnapshotToBinaryProto

src/caffe/solver.cpp:445–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444template <typename Dtype>
445string Solver<Dtype>::SnapshotToBinaryProto() {
446 string model_filename = SnapshotFilename(".caffemodel");
447 LOG(INFO) << "Snapshotting to binary proto file " << model_filename;
448 NetParameter net_param;
449 net_->ToProto(&net_param, param_.snapshot_diff());
450 WriteProtoToBinaryFile(net_param, model_filename);
451 return model_filename;
452}
453
454template <typename Dtype>
455string Solver<Dtype>::SnapshotToHDF5() {

Callers

nothing calls this directly

Calls 2

WriteProtoToBinaryFileFunction · 0.50
ToProtoMethod · 0.45

Tested by

no test coverage detected