| 951 | |
| 952 | template <typename Dtype> |
| 953 | void 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 | |
| 961 | template <typename Dtype> |
| 962 | bool Net<Dtype>::has_blob(const string& blob_name) const { |
no test coverage detected