vandanavk commented on a change in pull request #13471: Optimization of metric
evaluation
URL: https://github.com/apache/incubator-mxnet/pull/13471#discussion_r237957391
##########
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:
`self._has_global_stats = kwargs.get("has_global_stats", False)` ?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services