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 2018/11/30 19:02:23 UTC

[GitHub] ptrendx commented on a change in pull request #13471: Optimization of metric evaluation

ptrendx commented on a change in pull request #13471: Optimization of metric evaluation
URL: https://github.com/apache/incubator-mxnet/pull/13471#discussion_r237967620
 
 

 ##########
 File path: python/mxnet/metric.py
 ##########
 @@ -91,6 +91,10 @@ def __init__(self, name, output_names=None,
         self.output_names = output_names
         self.label_names = label_names
         self._kwargs = kwargs
+        if "has_global_stats" in kwargs:
+            self._has_global_stats = kwargs["has_global_stats"]
+        else:
+            self._has_global_stats = False
 
 Review comment:
   done (with pop to not keep the has_global_stats key in kwargs, to not screw with deserialization later.)

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