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

Method ToProto

rtpose_wrapper/include/caffe/layer.hpp:507–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505// Serialize LayerParameter to protocol buffer
506template <typename Dtype>
507void Layer<Dtype>::ToProto(LayerParameter* param, bool write_diff) {
508 param->Clear();
509 param->CopyFrom(layer_param_);
510 param->clear_blobs();
511 for (int i = 0; i < blobs_.size(); ++i) {
512 blobs_[i]->ToProto(param->add_blobs(), write_diff);
513 }
514}
515
516} // namespace caffe
517

Callers

nothing calls this directly

Calls 3

CopyFromMethod · 0.80
ClearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected