Fix my nonsensical variable names.
authorJeff Donahue <jeff.donahue@gmail.com>
Sun, 27 Jul 2014 02:53:15 +0000 (19:53 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Sun, 27 Jul 2014 02:54:05 +0000 (19:54 -0700)
src/caffe/net.cpp

index 8e99d30..228f826 100644 (file)
@@ -419,10 +419,10 @@ void Net<Dtype>::ForwardDebugInfo(const int layer_id) {
   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;
   }
 }
 
@@ -433,19 +433,19 @@ void Net<Dtype>::BackwardDebugInfo(const int layer_id) {
     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;
   }
 }
 
@@ -455,12 +455,12 @@ void Net<Dtype>::UpdateDebugInfo(const int param_id) {
   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];
@@ -468,7 +468,7 @@ void Net<Dtype>::UpdateDebugInfo(const int param_id) {
         << ", 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;
   }
 }