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

Method ShareWeights

src/caffe/net.cpp:935–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933
934template <typename Dtype>
935void Net<Dtype>::ShareWeights() {
936 for (int i = 0; i < params_.size(); ++i) {
937 if (param_owners_[i] < 0) { continue; }
938 params_[i]->ShareData(*params_[param_owners_[i]]);
939 params_[i]->ShareDiff(*params_[param_owners_[i]]);
940 }
941}
942
943template <typename Dtype>
944bool 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