| 452 | |
| 453 | template <typename Dtype> |
| 454 | string 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 | |
| 463 | template <typename Dtype> |
| 464 | string Solver<Dtype>::SnapshotToHDF5() { |
nothing calls this directly
no test coverage detected