You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/17 02:28:17 UTC

[GitHub] zihaolucky commented on a change in pull request #7503: log epoch number for tensorboard

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:
users@infra.apache.org


With regards,
Apache Git Services