MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / ToProto

Method ToProto

rtpose_wrapper/src/caffe/net.cpp:856–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854
855template <typename Dtype>
856void Net<Dtype>::ToProto(NetParameter* param, bool write_diff) const {
857 param->Clear();
858 param->set_name(name_);
859 // Add bottom and top
860 DLOG(INFO) << "Serializing " << layers_.size() << " layers";
861 for (int i = 0; i < layers_.size(); ++i) {
862 LayerParameter* layer_param = param->add_layer();
863 layers_[i]->ToProto(layer_param, write_diff);
864 }
865}
866
867template <typename Dtype>
868void 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.45
sizeMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.36