for (int top_id = 0; top_id < top_vecs_[layer_id].size(); ++top_id) {
const Blob<Dtype>& blob = *top_vecs_[layer_id][top_id];
const string& blob_name = blob_names_[top_id_vecs_[layer_id][top_id]];
- const Dtype asum_mean = blob.asum_data() / blob.count();
+ const Dtype data_abs_val_mean = blob.asum_data() / blob.count();
LOG(INFO) << " [Forward] "
<< "Layer " << layer_names_[layer_id] << ", top blob " << blob_name
- << " data: " << asum_mean;
+ << " data: " << data_abs_val_mean;
}
}
if (!bottom_need_backward_[layer_id][bottom_id]) { continue; }
const Blob<Dtype>& blob = *bottom_vec[bottom_id];
const string& blob_name = blob_names_[bottom_id_vecs_[layer_id][bottom_id]];
- const Dtype asum_mean = blob.asum_diff() / blob.count();
+ const Dtype diff_abs_val_mean = blob.asum_diff() / blob.count();
LOG(INFO) << " [Backward] "
<< "Layer " << layer_names_[layer_id] << ", bottom blob " << blob_name
- << " diff: " << asum_mean;
+ << " diff: " << diff_abs_val_mean;
}
for (int param_id = 0; param_id < layers_[layer_id]->blobs().size();
++param_id) {
if (!layers_[layer_id]->param_propagate_down(param_id)) { continue; }
const Blob<Dtype>& blob = *layers_[layer_id]->blobs()[param_id];
- const Dtype asum_mean = blob.asum_diff() / blob.count();
+ const Dtype diff_abs_val_mean = blob.asum_diff() / blob.count();
LOG(INFO) << " [Backward] "
<< "Layer " << layer_names_[layer_id] << ", param blob " << param_id
- << " diff: " << asum_mean;
+ << " diff: " << diff_abs_val_mean;
}
}
const int param_owner = param_owners_[param_id];
const string& layer_name = layer_names_[param_layer_indices_[param_id].first];
const string& param_display_name = param_display_names_[param_id];
- const Dtype asum_diff_mean = blob.asum_diff() / blob.count();
+ const Dtype diff_abs_val_mean = blob.asum_diff() / blob.count();
if (param_owner < 0) {
- const Dtype asum_data_mean = blob.asum_data() / blob.count();
+ const Dtype data_abs_val_mean = blob.asum_data() / blob.count();
LOG(INFO) << " [Update] Layer " << layer_name
<< ", param " << param_display_name
- << " data: " << asum_data_mean << "; diff: " << asum_diff_mean;
+ << " data: " << data_abs_val_mean << "; diff: " << diff_abs_val_mean;
} else {
const string& owner_layer_name =
layer_names_[param_layer_indices_[param_owner].first];
<< ", param blob " << param_display_name
<< " (owned by layer " << owner_layer_name << ", "
<< "param " << param_display_names_[param_owners_[param_id]] << ")"
- << " diff: " << asum_diff_mean;
+ << " diff: " << diff_abs_val_mean;
}
}