| 443 | |
| 444 | template <typename Dtype> |
| 445 | string 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 | |
| 454 | template <typename Dtype> |
| 455 | string Solver<Dtype>::SnapshotToHDF5() { |
nothing calls this directly
no test coverage detected