diff options
author | 2018-08-23 16:23:03 +0800 | |
---|---|---|
committer | 2018-08-23 16:54:59 +0800 | |
commit | 38f811077dd52820eaa3d5c684f41142de01c7eb (patch) | |
tree | 56791f8875cb4dffe56cbe2bf5a7c34e71ddacd0 /tensorflow/python/keras/metrics.py | |
parent | c05bb4efcaf53d4cbc315ef6d12de822f2557a13 (diff) |
CLN: remove negative_to_zero argument
Diffstat (limited to 'tensorflow/python/keras/metrics.py')
-rw-r--r-- | tensorflow/python/keras/metrics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/keras/metrics.py b/tensorflow/python/keras/metrics.py index 6f4353f96a..b5d3138da2 100644 --- a/tensorflow/python/keras/metrics.py +++ b/tensorflow/python/keras/metrics.py @@ -455,7 +455,7 @@ class Mean(Metric): state_ops.assign_add(self.count, num_values) def result(self): - return math_ops.div_no_nan(self.total, self.count, negative_to_zero=True) + return math_ops.div_no_nan(self.total, math_ops.maximum(self.count, 0)) class MeanMetricWrapper(Mean): |