// Save the network weights to binary proto for net surgeries. void save(string filename) { NetParameter net_param; net_->ToProto(&net_param, false); WriteProtoToBinaryFile(net_param, filename.c_str()); }
inline void WriteProtoToBinaryFile( const Message& proto, const string& filename) { WriteProtoToBinaryFile(proto, filename.c_str()); }