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

Function Net_Save

python/caffe/_caffe.cpp:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void Net_Save(const Net<Dtype>& net, string filename) {
154 NetParameter net_param;
155 net.ToProto(&net_param, false);
156 WriteProtoToBinaryFile(net_param, filename.c_str());
157}
158
159void Net_SaveHDF5(const Net<Dtype>& net, string filename) {
160 net.ToHDF5(filename);

Callers

nothing calls this directly

Calls 2

WriteProtoToBinaryFileFunction · 0.50
ToProtoMethod · 0.45

Tested by

no test coverage detected