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

Method ToProto

include/caffe/layer.hpp:466–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464// Serialize LayerParameter to protocol buffer
465template <typename Dtype>
466void Layer<Dtype>::ToProto(LayerParameter* param, bool write_diff) {
467 param->Clear();
468 param->CopyFrom(layer_param_);
469 param->clear_blobs();
470 for (int i = 0; i < blobs_.size(); ++i) {
471 blobs_[i]->ToProto(param->add_blobs(), write_diff);
472 }
473}
474
475} // namespace caffe
476

Callers

nothing calls this directly

Calls 3

ClearMethod · 0.80
CopyFromMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected