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

Method ShareWeights

rtpose_wrapper/src/caffe/net.cpp:953–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951
952template <typename Dtype>
953void Net<Dtype>::ShareWeights() {
954 for (int i = 0; i < params_.size(); ++i) {
955 if (param_owners_[i] < 0) { continue; }
956 params_[i]->ShareData(*params_[param_owners_[i]]);
957 params_[i]->ShareDiff(*params_[param_owners_[i]]);
958 }
959}
960
961template <typename Dtype>
962bool Net<Dtype>::has_blob(const string& blob_name) const {

Callers 1

Forward_cpuMethod · 0.80

Calls 3

ShareDataMethod · 0.80
ShareDiffMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected