zihaolucky commented on a change in pull request #7503: log epoch number for 
tensorboard
URL: https://github.com/apache/incubator-mxnet/pull/7503#discussion_r133611060
 
 

 ##########
 File path: python/mxnet/contrib/tensorboard.py
 ##########
 @@ -70,4 +70,4 @@ def __call__(self, param):
         for name, value in name_value:
             if self.prefix is not None:
                 name = '%s-%s' % (self.prefix, name)
-            self.summary_writer.add_scalar(name, value)
+            self.summary_writer.add_scalar(name, value, 
global_step=param.epoch)
 
 Review comment:
   What would happened if we use this in `batch_end_callback`?
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to