You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/24 00:26:30 UTC

[GitHub] szha closed pull request #7423: Do not use LG in case of DMLC_GLOG_DEFINED enabled

szha closed pull request #7423: Do not use LG in case of DMLC_GLOG_DEFINED enabled
URL: https://github.com/apache/incubator-mxnet/pull/7423
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/cpp-package/include/mxnet-cpp/lr_scheduler.h b/cpp-package/include/mxnet-cpp/lr_scheduler.h
index b9381a830a..8aff2d01a9 100644
--- a/cpp-package/include/mxnet-cpp/lr_scheduler.h
+++ b/cpp-package/include/mxnet-cpp/lr_scheduler.h
@@ -74,10 +74,10 @@ class FactorScheduler : public LRScheduler {
       base_lr_ *= factor_;
       if (base_lr_ < stop_factor_lr_) {
         base_lr_ = stop_factor_lr_;
-        LG << "Update[" << num_update << "]: now learning rate arrived at " \
+        LOG(INFO) << "Update[" << num_update << "]: now learning rate arrived at " \
            << base_lr_ << ", will not change in the future";
       } else {
-        LG << "Update[" << num_update << "]: Change learning rate to " << base_lr_;
+        LOG(INFO) << "Update[" << num_update << "]: Change learning rate to " << base_lr_;
       }
     }
     return base_lr_;
diff --git a/cpp-package/include/mxnet-cpp/monitor.hpp b/cpp-package/include/mxnet-cpp/monitor.hpp
index eef218bff4..8af2cbccc7 100644
--- a/cpp-package/include/mxnet-cpp/monitor.hpp
+++ b/cpp-package/include/mxnet-cpp/monitor.hpp
@@ -89,7 +89,7 @@ inline void Monitor::toc_print() {
       str = out.str();
     }
 
-    LG << "Batch: " << std::get<0>(stat) << ' ' << std::get<1>(stat) << ' ' << str;
+    LOG(INFO) << "Batch: " << std::get<0>(stat) << ' ' << std::get<1>(stat) << ' ' << str;
   }
 }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services