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/16 12:26:29 UTC
[GitHub] szha closed pull request #7503: log epoch number for tensorboard
szha closed pull request #7503: log epoch number for tensorboard
URL: https://github.com/apache/incubator-mxnet/pull/7503
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/python/mxnet/contrib/tensorboard.py b/python/mxnet/contrib/tensorboard.py
index 2bb766e7d6..f214917822 100644
--- a/python/mxnet/contrib/tensorboard.py
+++ b/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)
----------------------------------------------------------------
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