cjolivier01 commented on a change in pull request #9793: Enable the reporting 
of cross-entropy or nll loss value when training CNN network using the models 
defined by example/image-classification
URL: https://github.com/apache/incubator-mxnet/pull/9793#discussion_r168324964
 
 

 ##########
 File path: example/image-classification/common/fit.py
 ##########
 @@ -260,6 +262,18 @@ def fit(args, network, data_loader, **kwargs):
         eval_metrics.append(mx.metric.create(
             'top_k_accuracy', top_k=args.top_k))
 
+    supported_loss = ['ce', 'nll_loss']
+    if args.loss:
 
 Review comment:
   would len(args.loss) > 0 or come other non-implied boolean test read more 
easily?

----------------------------------------------------------------
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