Resets the state of metrics.
(self)
| 908 | use_multiprocessing=use_multiprocessing) |
| 909 | |
| 910 | def reset_metrics(self): |
| 911 | """Resets the state of metrics.""" |
| 912 | metrics = self._get_training_eval_metrics() |
| 913 | for m in metrics: |
| 914 | m.reset_states() |
| 915 | |
| 916 | # Reset metrics on all the distributed (cloned) models. |
| 917 | if self._distribution_strategy: |
| 918 | distributed_training_utils._reset_metrics(self) # pylint: disable=protected-access |
| 919 | |
| 920 | def train_on_batch(self, |
| 921 | x, |