liuzh91 commented on a change in pull request #16922: Update LoggingHandler to support logging
per interval
URL: https://github.com/apache/incubator-mxnet/pull/16922#discussion_r352399841
##########
File path: python/mxnet/gluon/contrib/estimator/event_handler.py
##########
@@ -286,21 +293,31 @@ def train_end(self, estimator, *args, **kwargs):
estimator.logger.info(msg.rstrip(', '))
def batch_begin(self, estimator, *args, **kwargs):
- if self.verbose == self.LOG_PER_BATCH:
+ if self.verbose >= self.LOG_PER_BATCH:
Review comment:
I'll fix this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
|