vector<vector<Blob<Dtype>*> > top_vecs_;
vector<vector<int> > top_id_vecs_;
vector<int> param_owners_;
- vector<pair<int, int> > param_net_indices_;
+ vector<pair<int, int> > layer_param_indices_;
map<string, int> param_names_index_;
// blob indices for the input and the output of the net
vector<int> net_input_blob_indices_;
}
const int net_param_id = params_.size();
params_.push_back(layers_[layer_id]->blobs()[param_id]);
- param_net_indices_.push_back(make_pair(layer_id, param_id));
+ layer_param_indices_.push_back(make_pair(layer_id, param_id));
if (!param_size || !param_name.size() || (param_name.size() &&
param_names_index_.find(param_name) == param_names_index_.end())) {
// This layer "owns" this parameter blob -- it is either anonymous
const int owner_net_param_id = param_names_index_[param_name];
param_owners_.push_back(owner_net_param_id);
const pair<int, int>& owner_index =
- param_net_indices_[owner_net_param_id];
+ layer_param_indices_[owner_net_param_id];
const int owner_layer_id = owner_index.first;
const int owner_param_id = owner_index.second;
LOG(INFO) << "Sharing parameters '" << param_name << "' owned by "