Skip to content

Commit d9cec81

Browse files
committed
Fix Windows compilation issue.
1 parent 0f3d8da commit d9cec81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/core/kernels/mkl/mkl_quantize_op.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class MklQuantizeV2Op : public OpKernel {
496496
// Estimating scales for quantization.
497497
const int num_bits = sizeof(T) * 8;
498498
const float max_abs = std::max(std::abs(min_range), std::abs(max_range));
499-
const bool is_signed = std::is_signed<T>::value;
499+
const bool is_signed = std::is_same<T, qint8>();
500500
float target_range;
501501
if (is_signed) {
502502
max_range = max_abs;

0 commit comments

Comments
 (0)