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

Method ToProto

src/caffe/net.cpp:838–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836
837template <typename Dtype>
838void Net<Dtype>::ToProto(NetParameter* param, bool write_diff) const {
839 param->Clear();
840 param->set_name(name_);
841 // Add bottom and top
842 DLOG(INFO) << "Serializing " << layers_.size() << " layers";
843 for (int i = 0; i < layers_.size(); ++i) {
844 LayerParameter* layer_param = param->add_layer();
845 layers_[i]->ToProto(layer_param, write_diff);
846 }
847}
848
849template <typename Dtype>
850void Net<Dtype>::ToHDF5(const string& filename, bool write_diff) const {

Callers 6

Net_SaveFunction · 0.45
SnapshotToBinaryProtoMethod · 0.45
TYPED_TESTFunction · 0.45
net_saveFunction · 0.45
write_meanFunction · 0.45

Calls 2

ClearMethod · 0.80
sizeMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.36