| 933 | |
| 934 | template <typename Dtype> |
| 935 | void 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 | |
| 943 | template <typename Dtype> |
| 944 | bool Net<Dtype>::has_blob(const string& blob_name) const { |
no test coverage detected