ptrendx commented on a change in pull request #13471: Optimization of metric
evaluation
URL: https://github.com/apache/incubator-mxnet/pull/13471#discussion_r240339181
##########
File path: python/mxnet/metric.py
##########
@@ -325,6 +371,15 @@ def reset(self):
except AttributeError:
pass
+ def reset_local(self):
+ """Resets the local portion of the internal evaluation results
+ to initial state."""
+ try:
+ for metric in self.metrics:
+ metric.reset_local()
+ except AttributeError:
+ pass
Review comment:
This is not added in this PR and I'm not sure myself why this is needed here
(this function is basically a copy of the `reset` function but calls
`reset_local` on children instead of `reset`).
----------------------------------------------------------------
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