From d9cec81c14e1553d7f8b048c23de75ccd7d34c0e Mon Sep 17 00:00:00 2001 From: mdfaijul Date: Mon, 5 Feb 2024 21:27:11 -0800 Subject: [PATCH] Fix Windows compilation issue. --- tensorflow/core/kernels/mkl/mkl_quantize_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/kernels/mkl/mkl_quantize_op.cc b/tensorflow/core/kernels/mkl/mkl_quantize_op.cc index e3e95444192265..b9c26f5ea7ea1e 100644 --- a/tensorflow/core/kernels/mkl/mkl_quantize_op.cc +++ b/tensorflow/core/kernels/mkl/mkl_quantize_op.cc @@ -496,7 +496,7 @@ class MklQuantizeV2Op : public OpKernel { // Estimating scales for quantization. const int num_bits = sizeof(T) * 8; const float max_abs = std::max(std::abs(min_range), std::abs(max_range)); - const bool is_signed = std::is_signed::value; + const bool is_signed = std::is_same(); float target_range; if (is_signed) { max_range = max_abs;