zihaolucky commented on a change in pull request #7363: Add tensorboard 
configure into ./common/fit.py and ./train_mnist.py
URL: https://github.com/apache/incubator-mxnet/pull/7363#discussion_r131632018
 
 

 ##########
 File path: example/image-classification/train_mnist.py
 ##########
 @@ -75,5 +75,13 @@ def get_mnist_iter(args, kv):
     net = import_module('symbols.'+args.network)
     sym = net.get_symbol(**vars(args))
 
+    # tensorboard logs
+    train_log = 'logs/mnist/train'
+    eval_log = 'logs/mnist/eval'
+    batch_end_callbacks = 
[mx.contrib.tensorboard.LogMetricsCallback(train_log)]
 
 Review comment:
   If some one hasn't install tensorboard yet, it might throw an exception. 
Consider making it an optional feature.
 
----------------------------------------------------------------
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