aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/quantized_add_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/kernels/quantized_add_op.cc')
-rw-r--r--tensorflow/core/kernels/quantized_add_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/quantized_add_op.cc b/tensorflow/core/kernels/quantized_add_op.cc
index 8be0c56798..337c8e5c17 100644
--- a/tensorflow/core/kernels/quantized_add_op.cc
+++ b/tensorflow/core/kernels/quantized_add_op.cc
@@ -489,7 +489,7 @@ class QuantizedAddOp : public OpKernel {
// adding zero leaves the result unchanged, and to contain the largest of
// the two input values with some room to spare.
const float smallest_min = std::min(min_x, min_y);
- const float largest_max = std::min(max_x, max_y);
+ const float largest_max = std::max(max_x, max_y);
const float biggest_range =
std::max(std::abs(smallest_min), std::abs(largest_max));
const float output_range = (biggest_range * (1 << 14));